def reverse_cuthill_mckee_ordering(G, heuristic=None):
 return reversed(list(cuthill_mckee_ordering(G, heuristic=heuristic)))

def reverse_cuthill_mckee_ordering ( G , heuristic = None ) : return reversed ( list ( cuthill_mckee_ordering ( G , heuristic = heuristic ) ) )
generate an ordering of the graph nodes to make a sparse matrix .