Leiden community detection: like louvain, but each level refines the communities into
well-connected groups before aggregating, which avoids badly connected communities. Same options
and output; deterministic (the refinement picks the best merge instead of a random one).
Leiden community detection: like louvain, but each level refines the communities into well-connected groups before aggregating, which avoids badly connected communities. Same options and output; deterministic (the refinement picks the best merge instead of a random one).