dwave_networkx.pegasus_coordinates.graph_to_pegasus#

pegasus_coordinates.graph_to_pegasus(g)[source]#

Returns a copy of the graph g relabeled to have Pegasus coordinates.

Parameters:

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

Returns:

G – A Pegaus graph relabeled with 4-term Pegasus coordinates.

Return type:

NetworkX Graph