next | previous | forward | backward | up | top | index | toc | directory | Macaulay 2 web site

randomGraph -- returns a random graph

Synopsis

Description

i1 : R = QQ[x_1..x_9];
i2 : randomGraph(R,4)

o2 = Graph{edges => {{x , x }, {x , x }, {x , x }, {x , x }}}
                       4   6     1   4     3   5     5   9
           ring => R
           vertices => {x , x , x , x , x , x , x , x , x }
                         1   2   3   4   5   6   7   8   9

o2 : Graph
i3 : randomGraph(R,4)

o3 = Graph{edges => {{x , x }, {x , x }, {x , x }, {x , x }}}
                       5   8     4   9     2   4     1   8
           ring => R
           vertices => {x , x , x , x , x , x , x , x , x }
                         1   2   3   4   5   6   7   8   9

o3 : Graph

See also

Ways to use randomGraph :