This function allows one to create a graph on an underlying vertex set with a given number of randomly chosen edges.
i1 : R = QQ[x_1..x_9]; |
i2 : randomGraph(R,4)
o2 = Graph{edges => {{x , x }, {x , x }, {x , x }, {x , x }}}
4 8 1 3 6 7 3 8
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 }}}
1 8 7 9 3 4 5 6
ring => R
vertices => {x , x , x , x , x , x , x , x , x }
1 2 3 4 5 6 7 8 9
o3 : Graph
|