Closed daneelsan closed 3 years ago
I think another useful API would be just specifying the total number of hyperedge parts (essentially, the "complexity").
E.g., for {{1, 2, 3}, {3, 4}, {4, 5, 6}}
, this number will be 8.
This way, one can generate any possible hypergraph by varying just one parameter. This will be even more useful for enumeration.
It might also be useful to generate connected hypergraphs (maybe with an option).
The problem
Implement the
RandomHypergraph
function.Possible solution
A possible implementation and API is found in the WFR: