dwave_networkx.drawing.chimera_layout.draw_chimera_yield#

draw_chimera_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 that are absent from 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 the pos parameter. If the linear_biases or quadratic_biases parameters are specified, the draw_networkx() node_color or edge_color parameters are ignored.