hatvis.models#
Random hypergraphs and null models.
Null models separate structure from chance: a pattern is interesting only if it is rarer or more frequent than in random hypergraphs that share some basic properties with the data (sizes, degrees, communities).
Uniform, size-preserving, Chung-Lu, configuration model, planted partition, temporal.
Functions#
|
Uniform random hypergraph: |
|
Random hypergraph with a prescribed size sequence (each hyperedge a uniform random subset). |
|
Chung–Lu hypergraph: vertices enter a hyperedge with probability proportional to their degree. |
|
Degree- and size-preserving randomization by pairwise reshuffles (Chodrow 2020). |
|
Hypergraph stochastic block model with planted communities. |
|
Temporal hypergraph with tunable persistence: a fraction of the hyperedges is repeated from the last step. |