You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the paper, Eq. (A4) rather than Eq. (A5) is used in the algorithms and proofs. Note that Eq. (A4) is CPM while Eq. (A5) is modularity. Therefore, if modularity is used, there should be a division of total_edge_weight. This also applies to the computation of well connected communities, which should be
- Normalization factor was missing in the equation to decide if a node and a refined community is strongly connected inside their Louvain community. This PR adds that factor.
- Disable random moves in the refinement phase. We plan to expose a flag to enable/disable random moves in a future PR.
- Adds new function to flatten Leiden dendrogram as dendrogram flattening process needs additional info to unroll hierarchical leiden clustering
Closes#3850Closes#3749
Authors:
- Naim (https://github.com/naimnv)
- Alex Barghi (https://github.com/alexbarghi-nv)
Approvers:
- Chuck Hastings (https://github.com/ChuckHastings)
- Seunghwa Kang (https://github.com/seunghwak)
- Brad Rees (https://github.com/BradReesWork)
URL: #3990
Thanks for your great work! However, after reading the code of Leiden, I'm afraid that there are probably several errors in refine_impl.cuh.
According to the paper, Eq. (A4) rather than Eq. (A5) is used in the algorithms and proofs. Note that Eq. (A4) is CPM while Eq. (A5) is modularity. Therefore, if modularity is used, there should be a division of
total_edge_weight
. This also applies to the computation of well connected communities, which should besince the vertex has not been merged into
dst_leiden_cluster
.The text was updated successfully, but these errors were encountered: