Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Implement Leiden community detection #81

Open
jolespin opened this issue Apr 12, 2021 · 1 comment
Open

[Feature Request] Implement Leiden community detection #81

jolespin opened this issue Apr 12, 2021 · 1 comment

Comments

@jolespin
Copy link

I recently stumbled across the paper: https://www.nature.com/articles/s41598-019-41695-z

From Louvain to Leiden: guaranteeing well-connected communities
V. A. Traag, L. Waltman & N. J. van Eck
Scientific Reports volume 9, Article number: 5233 (2019) Cite this article
Published: 26 March 2019

Abstract
Community detection is often used to understand the structure of large and complex networks. One of the most popular algorithms for uncovering community structure is the so-called Louvain algorithm. We show that this algorithm has a major defect that largely went unnoticed until now: the Louvain algorithm may yield arbitrarily badly connected communities. In the worst case, communities may even be disconnected, especially when running the algorithm iteratively. In our experimental analysis, we observe that up to 25% of the communities are badly connected and up to 16% are disconnected. To address this problem, we introduce the Leiden algorithm. We prove that the Leiden algorithm yields communities that are guaranteed to be connected. In addition, we prove that, when the Leiden algorithm is applied iteratively, it converges to a partition in which all subsets of all communities are locally optimally assigned. Furthermore, by relying on a fast local move approach, the Leiden algorithm runs faster than the Louvain algorithm. We demonstrate the performance of the Leiden algorithm for several benchmark and real-world networks. We find that the Leiden algorithm is faster than the Louvain algorithm and uncovers better partitions, in addition to providing explicit guarantees.

Would it be possible to implement Leiden algorithm in future releases?

@taynaud
Copy link
Owner

taynaud commented Jan 29, 2022

Hello,

I do not plan to add other algorithms for community detection in this package for the moment. It's goal is more to be a good readable implementation of the Louvain algorithm rather than a community detection library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants