next | previous | forward | backward | up | top | index | toc | Macaulay2 website
NautyGraphs :: generateRandomRegularGraphs

generateRandomRegularGraphs -- generates random regular graphs on a given number of vertices



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 = {DLo, Dhc, DMg}

o1 : List


The number of vertices $n$ must be positive as nauty cannot handle graphs with zero vertices.

See also

Ways to use generateRandomRegularGraphs :

For the programmer

The object generateRandomRegularGraphs is a method function with options.