permute.nodes: Permute the order of nodes in a graph
Description
Randomize the order of the nodes in a graph.
Usage
permute.nodes(x, perm = NULL)
Details
Useful for obfuscating the
topological sort in a DAG, which is often the default output of methods
that generate a random DAG. Output is graph isomorphic to input.