graph-toolkit
    Preparing search index...

    Function leiden

    • 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).

      Parameters

      Returns ReadonlyMap<VertexId, number>