This function allows one to create a uniform hypergraph on an underlying vertex set with a given number of randomly chosen edges of given cardinality.
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 5 7 4 5 8 1 7 8 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 }} } 1 3 8 9 3 4 5 8 ring => R vertices => {x , x , x , x , x , x , x , x , x } 1 2 3 4 5 6 7 8 9 o3 : HyperGraph |