DOKK / manpages / debian 11 / nauty / nauty-genrang.1.en
NAUTY-GENRANG(1) Nauty Manual NAUTY-GENRANG(1)

nauty-genrang - generate random graphs

genrang [-P#|-P#/#|-e#|-r#|-R#|-d#] [-l#] [-m#] [-t] [-T] [-a] [-s|-g|-z] [-S#] [-q] n|n1,n2 num [outfile]

Generate random graphs.
: number of vertices
n1,n2 : number of vertices (bipartite graph)
num : number of graphs
A bipartite variant is only available if specified below.
: Write in sparse6 format (default)
: Write in graph6 format
: Make random digraphs and write in digraph6 format

-P#/# : Give edge probability; -P# means -P1/#.

Bipartite version available.

-e# : Give the number of edges

Bipartite version available.

-r# : Make regular of specified degree

-d# : Make regular of specified degree (pseudorandom)

Bipartite version: this is the degree on the first side

-R# : Make regular of specified degree but output

as vertex count, edge count, then list of edges

-l# : Maximum loop multiplicity (default 0)

-m# : Maximum multiplicity of non-loop edge (default and minimum 1)

: Make a random spanning tree of a complete graph
or complete bipartite graph
: Make a random tournament (implies -z)
: Make invariant under a random permutation

-S# : Specify random generator seed (default nondeterministic)

: suppress auxiliary output
March 2021 nauty 2.7.1