Macaulay2 » Documentation
Packages » NautyGraphs :: generateRandomRegularGraphs
next | previous | forward | backward | up | index | toc

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

Synopsis

Description

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 = {DqK, D[S, DMg}

o1 : List

Caveat

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.