Skip to main content

Module classic

Module classic 

Source
Available on crate feature generators only.
Expand description

Classic hypergraph generators (XGI xgi/generators/classic.py port).

Enums§

GeneratorError
Error raised by a generator given invalid parameters.

Functions§

complement
The complement of h: same nodes, every possible edge (size 1..=maxsize) EXCEPT those present in h. XGI complement(H).
complete_hypergraph
A complete hypergraph on n nodes. Exactly one of order / max_order must be Some. XGI complete_hypergraph.
empty_hypergraph
The empty hypergraph (0 nodes, 0 edges). XGI empty_hypergraph().
trivial_hypergraph
A hypergraph with n nodes (“0”..“n-1”) and no edges. XGI trivial_hypergraph(n).