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

randomUniformHyperGraph -- returns a random uniform hypergraph

Synopsis

Description

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

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

o2 : HyperGraph
i3 : randomUniformHyperGraph(R,4,2)

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

o3 : HyperGraph

See also

Ways to use randomUniformHyperGraph :