Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.algorithms.coloring.strategy_largest_first

strategy_largest_first(G, colors)[source]

Returns a list of the nodes of G in decreasing order by degree.

G is a NetworkX graph. colors is ignored.