Faster unfolding of communities: speeding up the Louvain algorithm
Not on the map. Why?
Abstract (arXiv)
Many complex networks exhibit a modular structure of densely connected groups of nodes. Usually, such a modular structure is uncovered by the optimization of some quality function. Although flawed, modularity remains one of the most popular quality functions. The Louvain algorithm was originally developed for optimizing modularity, but has been applied to a variety of methods. As such, speeding up the Louvain algorithm, enables the analysis of larger graphs in a shorter time for various methods. We here suggest to consider moving nodes to a random neighbor community, instead of the best neighbor community. Although incredibly simple, it reduces the theoretical runtime complexity from O(m) to O(n log langle k rangle) in networks with a clear community structure. In benchmark networks, it speeds up the algorithm roughly 2-3 times, while in some real networks it even reaches 10 times faster runtimes. This improvement is due to two factors: (1) a random neighbor is likely to be in a "good" community; and (2) random neighbors are likely to be hubs, helping the convergence. Finally, the performance gain only slightly diminishes the quality, especially for modularity, thus providing a good quality-performance ratio. However, these gains are less pronounced, or even disappear, for some other measures such as significance or surprise.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Mar 2015.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 2; 2024: 1; 2025: 2.
7 papers.
- 2023A Comprehensive Review of Community Detection in Graphscited by 12
- 2021Scalable Community Detection via Parallel Correlation Clusteringcited by 9
- 2024Bandits with Abstention under Expert Advicecited by 3
- 2023Single-Cell RNA-seq Synthesis with Latent Diffusion Modelcited by 2
- 2025Inducing, Detecting and Characterising Neural Modules: A Pipeline for Functional Interpretability in Reinforcement Learningcited by 1
- 2025Hybrid Graph Embeddings and Louvain Algorithm for Unsupervised Community Detectioncited by 1
- 2022From Single Aircraft to Communities: A Neutral Interpretation of Air Traffic Complexity Dynamicscited by 0
- 2025Hybrid Graph Embeddings and Louvain Algorithm for Unsupervised Community Detection27 Sep 2025
- 2025Inducing, Detecting and Characterising Neural Modules: A Pipeline for Functional Interpretability in Reinforcement Learning28 Jan 2025
- 2024Bandits with Abstention under Expert Advice22 Feb 2024
- 2023Single-Cell RNA-seq Synthesis with Latent Diffusion Model21 Dec 2023
- 2023A Comprehensive Review of Community Detection in Graphs21 Sep 2023
- 2022From Single Aircraft to Communities: A Neutral Interpretation of Air Traffic Complexity Dynamics15 Jul 2022
- 2021Scalable Community Detection via Parallel Correlation Clustering27 Jul 2021