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.
generateRandomRegularGraphs(5, 3, 2)
Caveat
The number of vertices n must be positive as nauty cannot handle graphs with zero vertices.