def strategy_largest_first(G, colors):
 return sorted(G, key=G.degree, reverse=True)

def strategy_largest_first ( G , colors ) : return sorted ( G , key = G . degree , reverse = True )
returns a list of the nodes of g in decreasing order by degree .