dwave_networkx.pegasus_coordinates.graph_to_nice#

pegasus_coordinates.graph_to_nice(g)[source]#

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

Parameters:

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

Returns:

G – A Pegasus graph relabeled with 5-term nice coordinates.

Return type:

NetworkX Graph