hatvis.models.configuration_model#
- hatvis.models.configuration_model(H, n_steps=None, random_state=None)[source]#
Degree- and size-preserving randomization by pairwise reshuffles (Chodrow 2020).
A step picks two hyperedges \(e,f\), keeps their common vertices \(e\cap f\) in both, and redistributes the vertices of the symmetric difference at random while keeping \(|e|\) and \(|f|\). Every vertex degree and hyperedge size is preserved and no hyperedge gets a repeated vertex.
n_stepsdefaults to ten times the number of hyperedges.
Examples using hatvis.models.configuration_model#
Null models: what is structure and what is chance?
Null models: what is structure and what is chance?