dwave.graphs.pegasus_coordinates.graph_to_nice#

pegasus_coordinates.graph_to_nice(g: Graph) Graph[source]#

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

Parameters:

g – The Pegasus graph to be relabeled.

Returns:

A Pegasus graph relabeled with 5-term nice coordinates.