- draw_zephyr_yield(G, **kwargs)¶
Draws the given graph G with highlighted faults, according to layout.
G (NetworkX graph) – Graph to be parsed for faults.
unused_color (tuple or color string (optional, default (0.9,0.9,0.9,1.0))) – The color to use for nodes and edges of G which are not faults. If unused_color is None, these nodes and edges will not be shown at all.
fault_color (tuple or color string (optional, default (1.0,0.0,0.0,1.0))) – A color to represent nodes absent from the graph G. Colors should be length-4 tuples of floats between 0 and 1 inclusive.
fault_shape (string, optional (default='x')) – The shape of the fault nodes. Specification is as for Matplotlib’s markers; for example “o” (circle), “^” (triangle)”, “s” (square) and many more options.
fault_style (string, optional (default='dashed')) – Edge fault line style (solid|dashed|dotted|dashdot)
kwargs (optional keywords) – See
draw_networkx()for a description of optional keywords, with the exception of the
posparameter, which is unsupported. If the
quadratic_biasesparameters are provided, any provided
edge_colorarguments are ignored.