G = generateRandomRegularGraphs(n, num, reg)
G = generateRandomRegularGraphs(R, num, reg)
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.
If a PolynomialRing $R$ is supplied instead, then the number of vertices is the number of generators. Moreover, the nauty-based strings are automatically converted to instances of the class Graph in $R$.
|
|
The number of vertices $n$ must be positive as nauty cannot handle graphs with zero vertices.
The object generateRandomRegularGraphs is a method function with options.