hatvis.metrics.degree_assortativity#
- hatvis.metrics.degree_assortativity(H, kind='uniform', random_state=None, n_samples=None)[source]#
Degree assortativity of a hypergraph (after Chodrow 2020).
For every hyperedge a pair of distinct member vertices is chosen —
"uniform": all pairs (orn_samplesrandom pairs),"top-bottom": the vertices of largest and smallest degree — and the Pearson correlation of their degrees is returned. Positive values: high-degree vertices share hyperedges with high-degree vertices.
Examples using hatvis.metrics.degree_assortativity#
Null models: what is structure and what is chance?
Null models: what is structure and what is chance?