dwave_networkx.chimera_coordinates.graph_to_linear#

chimera_coordinates.graph_to_linear(g)[source]#

Returns a copy of the graph g relabeled to have linear indices.

Parameters:

g (NetworkX Graph) – The Chimera graph to be relabeled.

Returns:

G – A Chimera graph relabeled with linear indices.

Return type:

NetworkX Graph