dwave_networkx.zephyr_coordinates.graph_to_linear#

zephyr_coordinates.graph_to_linear(g)[source]#

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

Parameters:

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

Returns:

G – A Zephyr graph relabeled with linear indices.

Return type:

NetworkX Graph