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

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

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 :