From Louvain to Leiden: guaranteeing well-connected communities
Open accessThe DOI matches its Crossref record; 30 of the 30 references it cites were found in a registry or an index; 1 of the 26 sources its claims cite were checked for support.
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.
Overview
CoChat Summary
TL;DR
The Louvain algorithm can yield arbitrarily badly connected communities, including disconnected ones, especially when iterated. The Leiden algorithm guarantees connected communities and, under iteration, converges to subset-optimal partitions while running faster and finding higher-quality partitions.
Key findings
- Louvain may produce arbitrarily badly connected communities; in experiments up to 25% of communities were badly connected and up to 16% were disconnected. First-iteration badly connected percentages included Amazon 23%, DBLP 16%, and Web UK 14%; disconnected communities were usually around 1%, but exceeded 5% for Web of Science in the first iteration and jumped to 16% for DBLP in later iterations. After four iterations, Amazon had 5% disconnected but 25% badly connected communities.
- Leiden guarantees all communities are connected after each iteration, and also γ-separated and γ-connected. After a stable iteration, all nodes are locally optimally assigned and all communities are subpartition γ-dense; asymptotically, all communities are uniformly γ-dense and subset optimal.
- Leiden was faster than Louvain: first iteration roughly 2–20 times faster on empirical networks, including more than 7× faster for Live Journal, more than 11× for Web of Science, and more than 20× for Web UK. On benchmark networks with difficult partitions (μ = 0.9), Louvain required almost 2.5 days while Leiden needed fewer than 10 minutes; for largest networks Leiden reached 10–100 times faster runtimes.
- Leiden found higher modularity on all six empirical networks: DBLP 0.8387 vs 0.8262, Amazon 0.9341 vs 0.9301, IMDB 0.7069 vs 0.7062, Live Journal 0.7739 vs 0.7653, Web of Science 0.7951 vs 0.7911, and Web UK 0.9801 vs 0.9796.
Methods
- The paper introduces the Leiden algorithm, which combines local moving, refinement of the partition, and aggregation; proofs of guarantees are relegated to Supplementary Information. It compares Leiden with Louvain on six empirical networks and on benchmark networks.
- Empirical networks: DBLP (317,080 nodes, degree 6.6), Amazon (334,863, 5.6), IMDB (374,511, 80.2), Live Journal (3,997,962, 17.4), Web of Science (9,811,130, 21.2), and Web UK (39,252,879, 39.8). Modularity was used with γ = 1; Table 2 reports maximal modularity after 10 replications of 10 iterations each. Badly connected community analysis was repeated 10 times, with Leiden run on each community’s subnetwork until a stable iteration.
- Benchmark networks ranged from n = 10^3 to n = 10^7 nodes, with community size 50 and CPM as the quality function; the mixing parameter μ varied, 10 iterations were performed, and each parameter set was repeated 10 times. The refinement randomness parameter was θ = 0.01.
Limitations
- The paper states that benchmark networks have only limited value because they are not representative of empirical real-world networks and have a rather simple structure.
- The paper states that counting communities split by Leiden gives only a lower bound on the number of badly connected communities; if Leiden does not find subcommunities, there is no guarantee that modularity cannot be increased by splitting the community.
- Evident from the text: there is no dedicated limitations section; technical details and proofs are relegated to Supplementary Information, and the experimental analysis fixes θ = 0.01 although values roughly in [0.0005, 0.1] are said to provide reasonable results.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Figures










Verification
Claims the paper makes
1 Valid · 2 Not valid · 17 Not checked · 142 Own results and interpretations
The cited sources support only part of this claim — read each source’s verdict below.
In the paper
“Hence, the problem of Louvain outlined above is independent from the issue of the resolution limit.”
§ From Louvain to Leiden: guaranteeing well-connected communities > Louvain Algorithm > Badly connected communities
What the sources say
- Partly supportedcites [14] Fortunato S Barthélemy M Resolution Limit in Community Detection Proc. Natl. Acad. Sci. USA 2007 104 36 10.1073/pnas.0605965104 17190818 PMC1765466 sourceExperimental — accuracy not yet measured
Our copy supports the resolution-limit side of the sentence: the Conclusions (VI, p. 7) state that 'the resolution limit of modularity does not rely on particular network structures, but only on the comparison between the sizes of interconnected communities and that of the whole network', the Introduction (p. 1) calls it an 'intrinsic scale' of modularity, and Section V (pp. 5-6) shows the failure persists with simulated annealing, i.e. it is a property of the quality function rather than of one particular optimizer. What the source does not contain is the other term of the comparison: Louvain is never mentioned anywhere in the paper (the Introduction, p. 1, lists only generic greedy procedures [19,20], extremal optimization [21] and simulated annealing [22,23]), and no passage contrasts the resolution limit with an algorithm-specific defect. The independence claim is therefore the citing authors' own inference built on this paper's characterization of the resolution limit. (LLM, conf=0.70)
plain- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
- Partly supported
A result the paper states — it cites no source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“The percentage of badly connected communities is less affected by the number of iterations of the Louvain algorithm.”
§ From Louvain to Leiden: guaranteeing well-connected communities > Experimental Analysis > Badly connected communities
plain- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: unclear — It is unclear whether the paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
A result the paper states — it cites no source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“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.”
- Also stated in: § Introduction · boosted
“In addition, we prove that the algorithm converges to an asymptotically stable partition in which all subsets of all communities are locally optimally assigned.”
§ From Louvain to Leiden: guaranteeing well-connected communities > Abstract
boostedstates a cause- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
- Also stated in: § Introduction · boosted
A result the paper reports from its own data — it cites no other source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“The second iteration of Louvain shows a large increase in the percentage of disconnected communities.”
§ From Louvain to Leiden: guaranteeing well-connected communities > Experimental Analysis > Badly connected communities
plainstates a cause- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
A result the paper reports from its own data — it cites no other source for it, so there is none to check. The quote shows it is in the paper.
In the paper
“In terms of the percentage of badly connected communities in the first iteration, Leiden performs even worse than Louvain, as can be seen in Fig. 4.”
§ From Louvain to Leiden: guaranteeing well-connected communities > Experimental Analysis > Badly connected communities
plain- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: unclear — It is unclear whether the paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
115 more claims
Create a free account to see all 162 claims and to verify the 24 references still open.
- Probably not a substantial claim. 23
- It may state two separate claims as one. 23
- The quote only partly states this claim. 1
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cited source says what the claim attributes to it.
In the citing paper
“When compared to six common clustering algorithms, including Leiden25 and CellHarmony26, VFC was the top performing algorithm on every simulation on the T cell data and best performing, on average, on the zebrafish dataset, with a 57% increase in average performance over Louvain, which was the next best algorithm”
From Quantifying the effect of experimental perturbations at single-cell resolution (2021) · cites this paper as [25]
The cited source says what the claim attributes to it.
In the citing paper
“Louvain’s successor Leiden circumvents this issue by yielding guaranteed connected communities and is computationally more efficient52.”
From Best practices for single-cell analysis across modalities (2023) · cites this paper as [52]
The cited source says what the claim attributes to it.
In the citing paper
“However, the Louvain algorithm can lead to arbitrarily poorly connected communities52.”
From Best practices for single-cell analysis across modalities (2023) · cites this paper as [52]
The cited source says what the claim attributes to it.
In the citing paper
“We found that many t-types had total variance substantially above the variances of the k-means clusters (Fig. 5b) and an alternative analysis using entropies of Leiden clustering35 often highlighted the same t-types as variable (Extended Data Fig. 8).”
From Phenotypic variation of transcriptomic cell types in mouse motor cortex (2021) · cites this paper as [35]
The cited source says what the claim attributes to it.
In the citing paper
“Community detection uses the Leiden algorithm [28] with ModularityVertexPartition, producing hierarchical subclustering to depth 3.”
From SuperLocalMemory: Privacy-Preserving Multi-Agent Memory with Bayesian Trust Defense Against Memory Poisoning (2026) · cites this paper as [28]
6 more claims about this paper
Create a free account to see every claim other papers make about this one.
Citations
Cites
Fast unfolding of communities in large networks
Blondel, V. D., Guillaume, J.-L., Lambiotte, R., & Lefebvre, E. (2008) · Journal of Statistical Mechanics: Theory and Experiment · doi:10.1088/1742-5468/2008/10/p10008 · Cited by 21,424 · cited 3×
“The Louvain algorithm 10 is very simple and elegant.”
MethodFinding and evaluating community structure in networks
Newman, M. E. J., & Girvan, M. (2004) · Physical Review E · doi:10.1103/physreve.69.026113 · Cited by 13,931 · cited 2×
“The Leiden algorithm consists of three phases: (1) local moving of nodes, (2) refinement of the partition and (3) aggregation of the network based on the refined partition, using the non-refined partition to create an initial partition for the aggregate network.”
BackgroundMethodComplex brain networks: graph theoretical analysis of structural and functional systems
Bullmore, E., & Sporns, O. (2009) · Nature Reviews Neuroscience · doi:10.1038/nrn2575 · Cited by 11,820
Fortunato, S. (2010) · Physics Reports · doi:10.1016/j.physrep.2009.11.002 · Cited by 11,293 · cited 4×
“The Leiden algorithm consists of three phases: (1) local moving of nodes, (2) refinement of the partition and (3) aggregation of the network based on the refined partition, using the non-refined partition to create an initial partition for the aggregate network.”
BackgroundMethodInfluentialFinding community structure in very large networks
Clauset, A., Newman, M. E. J., & Moore, C. (2004) · Physical Review E · doi:10.1103/physreve.70.066111 · Cited by 7,390 · cited 1×
“Optimising modularity is NP-hard 5 , and consequentially many heuristic algorithms have been proposed, such as hierarchical agglomeration 6 , extremal optimisation 7 , simulated annealing 4,8 and spectral 9 algorithms.”
MethodFinding community structure in networks using the eigenvectors of matrices
Newman, M. E. J. (2006) · Physical Review E · doi:10.1103/physreve.74.036104 · Cited by 4,761
Functional cartography of complex metabolic networks
Guimerà, R., & Nunes Amaral, L. A. (2005) · Nature · doi:10.1038/nature03288 · Cited by 3,983 · cited 2×
“Optimising modularity is NP-hard 5 , and consequentially many heuristic algorithms have been proposed, such as hierarchical agglomeration 6 , extremal optimisation 7 , simulated annealing 4,8 and spectral 9 algorithms.”
MethodNear linear time algorithm to detect community structures in large-scale networks
Raghavan, U. N., Albert, R., & Kumara, S. (2007) · Physical Review E · doi:10.1103/physreve.76.036106 · Cited by 3,502 · cited 2×
“Trying to fix the problem by simply considering the connected components of communities 19–21 is unsatisfactory because it addresses only the most extreme case and does not resolve the more fundamental problem.”
BackgroundBenchmark graphs for testing community detection algorithms
Lancichinetti, A., Fortunato, S., & Radicchi, F. (2008) · Physical Review E · doi:10.1103/physreve.78.046110 · Cited by 3,051 · cited 1×
“To study the scaling of the Louvain and the Leiden algorithm, we rely on a variant of a well-known approach for constructing benchmark networks 28 .”
MethodResolution limit in community detection
Fortunato, S., & Barthélemy, M. (2007) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.0605965104 · Cited by 3,024 · cited 2×
“The algorithm may yield arbitrarily badly connected communities, over and above the well-known issue of the resolution limit 14 .”
Background
Research works printed but not linked: 2
- Porter MA Onnela J-P Mucha PJ Communities in Networks Not. AMS 2009 56 1082 1097
- Luecken, M. D. Application of multi-resolution partitioning of interaction networks to the study of complex disease. Ph.D. thesis, (University of Oxford, 2016).
Cited by
Spatiotemporal transcriptomic atlas of mouse organogenesis using DNA nanoball-patterned arrays
Chen, A., Liao, S., Cheng, M., Ma, K., Wu, L., Lai, Y., Qiu, X., Yang, J., Xu, J., Hao, S., et al. (2022) · Cell · doi:10.1016/j.cell.2022.04.003 · Cited by 1,784
Cells of the adult human heart
Litviňuková, M., Talavera-López, C., Maatz, H., Reichart, D., Worth, C. L., Lindberg, E. L., Kanda, M., Polanski, K., Heinig, M., Lee, M., et al. (2020) · Nature · doi:10.1038/s41586-020-2797-4 · Cited by 1,729
scGPT: Towards Building a Foundation Model for Single-Cell Multi-omics Using Generative AI
Cui, H., Wang, C., Maan, H., Pang, K., Luo, F., & Wang, B. (2023) · doi:10.1101/2023.04.30.538439 · Cited by 1,694
Landscape and Dynamics of Single Immune Cells in Hepatocellular Carcinoma
Zhang, Q., He, Y., Luo, N., Patel, S. J., Han, Y., Gao, R., Modak, M., Carotta, S., Haslinger, C., Kind, D., et al. (2019) · Cell · doi:10.1016/j.cell.2019.10.003 · Cited by 1,624
Cellpose 2.0: how to train your own model
Pachitariu, M., & Stringer, C. (2022) · Nature Methods · doi:10.1038/s41592-022-01663-4 · Cited by 1,581
“We took the style vectors for all images and clustered them into nine different classes using the Leiden algorithm, illustrated on a t-SNE plot in Figure 2a [24, 25].”
MethodInfluential
Metadata
- Authors
- Traag, V. A., Waltman, L., & van Eck, N. J.
- Affiliations
- Leiden University (NL)
- Corresponding author
- Traag, V. A.
- Venue
- Scientific Reports
- Published
- 2019-03-26
- Volume
- 9
- Issue
- 1
- Pages
- 5233-5233
- ISSN
- 2045-2322 (ISSN-L)
- PMC
- PMC6435756
- OpenAlex
- W2897249806
- Semantic Scholar
- 79cdbabb22ef80074f5659430fe6fc97932798f5
- Cited by
- 5,635
- References
- 27
- Citations by year
- 2026: 1250 · 2025: 1281 · 2024: 980 · 2023: 757 · 2022: 639 · 2021: 466 · 2020: 213 · 2019: 46
- FWCI
- 158.78
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- cc-by
- creativecommons.org/licenses/by/4.0 (tdm)
- creativecommons.org/licenses/by/4.0 (vor)
- Locations
- Scientific Reports (publishedVersion, cc-by)
- Europe PMC (PubMed Central) (publishedVersion, other-oa)
- PubMed Central (publishedVersion, cc-by)
- PubMed (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- Leiden Repository (Leiden University) (submittedVersion, cc-by)
- Data Archiving and Networked Services (DANS) (submittedVersion, cc-by)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion)
- Leiden Repository (Leiden University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Physics and Astronomy › Statistical and Nonlinear Physics › Complex Network Analysis Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Advanced Clustering Algorithms Research
- Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Bioinformatics and Genomic Networks
- Keywords
- community detection, Louvain algorithm, Leiden algorithm, network partitioning, community connectivity, complex networks
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
The claim verdicts this report counts are experimental: their accuracy is not yet measured.
A language model drew the claims from the paper on 2026-11-23, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).
A second model labelled each claim on 2026-11-23 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).
Cited sources are checked with a language model’s help (qwen3.8-omni-flash).
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.