aryagraph.algorithms.community.louvain_hierarchy#
- aryagraph.algorithms.community.louvain_hierarchy(g: Any, weight: str | Callable[[Hashable, Hashable, dict], float] | None = 'weight', resolution: float = 1.0, threshold: float = 1e-07, seed: Any = None) list[list[set]][source]#
The Louvain dendrogram: the partition reached after every level, finest first.
Levels are unrefined; the last entry equals
louvain_communities(..., refine=False)for the same arguments.