aryagraph.algorithms.structure.rich_club_coefficient#
- aryagraph.algorithms.structure.rich_club_coefficient(g: Any, normalized: bool = False, Q: int = 100, seed: Any = None) dict[int, float][source]#
Rich-club coefficient
φ(k) = 2 E_k / N_k (N_k - 1)among the nodes of degree > k.Undirected graphs without self-loops; keys run over
kwhileN_k > 1. With normalized, each value is divided by that of a degree-preserving randomisation made withQ · mdouble-edge swaps seeded by seed (the swap sequence differs from networkx’s, so normalised values agree only statistically). A 0/0 ratio is NaN andx/0isinf.