dwave_networkx.drawing.zephyr_layout.draw_zephyr_yield#
- draw_zephyr_yield(G, **kwargs)[source]#
Draws graph
Gwith highlighted faults, according to the Zephyr layout.- Parameters:
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))) – Color to use for nodes and edges of
Gwhich are not faults. If None, these nodes and edges are not shown.fault_color (tuple or color string (optional, default (1.0,0.0,0.0,1.0))) – Color to represent nodes absent from the graph
G. Colors must be length-4 tuples of floats between 0 and 1, inclusive.fault_shape (string, optional (default='x')) – Shape of the fault nodes. The shapes are the same as those specified for Matplotlib markers.
fault_style (string, optional (default='dashed')) – Line style for fault edges. The line style can be any of the following values:
'solid','dashed','dotted','dashdot'.kwargs (optional keywords) – Parameters in
draw_networkx(), except for theposparameter. If thelinear_biasesorquadratic_biasesparameters are specified, thedraw_networkx()node_colororedge_colorparameters are ignored.