dwave_networkx.drawing.pegasus_layout.draw_pegasus_yield#
- draw_pegasus_yield(G, **kwargs)[source]#
Draws graph
G
with highlighted faults.- 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 graph
G
’s nodes and edges which 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 thepos
parameter. If thelinear_biases
orquadratic_biases
parameters are specified, thedraw_networkx()
node_color
oredge_color
parameters are ignored.