This method generates a specified number of random graphs on a given number of vertices with a given regularity. Note that some graphs may be isomorphic.
i1 : generateRandomRegularGraphs(5, 3, 2)
o1 = {DRo, DYc, DpS}
o1 : List
|
The number of vertices n must be positive as nauty cannot handle graphs with zero vertices.