Bayan Algorithm: Detecting Communities in Networks Through Exact and Approximate Optimization of Modularity
Not on the map. Why?
Abstract (arXiv)
Community detection is a classic network problem with extensive applications in various fields. Its most common method is using modularity maximization heuristics which rarely return an optimal partition or anything similar. Partitions with globally optimal modularity are difficult to compute, and therefore have been underexplored. Using structurally diverse networks, we compare 30 community detection methods including our proposed algorithm that offers optimality and approximation guarantees: the Bayan algorithm. Unlike existing methods, Bayan globally maximizes modularity or approximates it within a factor. Our results show the distinctive accuracy and stability of maximum-modularity partitions in retrieving planted partitions at rates higher than most alternatives for a wide range of parameter settings in two standard benchmarks. Compared to the partitions from 29 other algorithms, maximum-modularity partitions have the best medians for description length, coverage, performance, average conductance, and well clusteredness. These advantages come at the cost of additional computations which Bayan makes possible for small networks (networks that have up to 3000 edges in their largest connected component). Bayan is several times faster than using open-source and commercial solvers for modularity maximization, making it capable of finding optimal partitions for instances that cannot be optimized by any other existing method. Our results point to a few well performing algorithms, among which Bayan stands out as the most reliable method for small networks. A Python implementation of the Bayan algorithm (bayanpy) is publicly available through the package installer for Python.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 27 of its 100 references that are in the map. First posted on arXiv 10 Sep 2022.
Builds on
27 of 100 references.
References · 27
- 2018From Louvain to Leiden: guaranteeing well-connected communitiescited by 379
- 2016Community detection in networks: A user guidecited by 105
- 2018GEMSEC: Graph Embedding with Self Clusteringcited by 61
- 2016The ground truth about metadata and community detection in networkscited by 42
- 2015Structure and inference in annotated networkscited by 30
- 2013Efficient Monte Carlo and greedy heuristic for the inference of stochastic block modelscited by 29
- 202220 years of network community detectioncited by 23
- 2020Artificial Benchmark for Community Detection (ABCD): Fast Random Graph Model with Community Structurecited by 18
- 2017Element-centric clustering comparison unifies overlaps and hierarchycited by 17
- 2013A General Optimization Technique for High Quality Community Detection in Complex Networkscited by 16
- 2014Scalable detection of statistically significant communities and hierarchies, using message-passing for modularitycited by 16
- 2014Community detection in networks: Structural communities versus ground truthcited by 14
15 more
- 2018Hierarchical Graph Clustering using Node Pair Samplingcited by 11
- 2019EdMot: An Edge Enhancement Approach for Motif-aware Community Detectioncited by 11
- 2016The many facets of community detection in complex networkscited by 8
- 2016Network Clustering via Maximizing Modularity: Approximation Algorithms and Theoretical Limitscited by 7
- 2020Statistical inference of assortative community structurescited by 7
- 2015Detecting communities using asymptotical Surprisecited by 6
- 2019Improved mutual information measure for classification and community detectioncited by 6
- 2021Community Detection in the Stochastic Block Model by Mixed Integer Programmingcited by 5
- 2018Counting the number of metastable states in the modularity landscape: Algorithmic detectability limit of greedy algorithms in community detectioncited by 4
- 2021Identifying hidden coalitions in the US House of Representatives by optimally partitioning signed networks based on generalized balancecited by 4
- 2013Significant Scales in Community Structurecited by 3
- 2017Optimality Of Community Structure In Complex Networkscited by 2
- 2022A Study on Modularity Density Maximization: Column Generation Acceleration and Computational Complexity Analysiscited by 2
- 2016Generating realistic scaled complex networkscited by 1
- 2021Subnetwork Constraints for Tighter Upper Bounds and Exact Solution of the Clique Partitioning Problemcited by 1
Built on by
Citing papers per year: 2023: 3; 2024: 0; 2025: 2.
5 papers.
- 2023Normalized mutual information is a biased measure for classification and community detectioncited by 7
- 2023Analyzing Modularity Maximization in Approximation, Heuristic, and Graph Neural Network Algorithms for Community Detectioncited by 4
- 2023Heuristic Modularity Maximization Algorithms for Community Detection Rarely Return an Optimal Partition or Anything Similarcited by 2
- 2025Multilayer Artificial Benchmark for Community Detection (mABCD)cited by 1
- 2025Robust Markov stability for community detection at a scale learned based on the structurecited by 0
- 2025Multilayer Artificial Benchmark for Community Detection (mABCD)14 Jul 2025
- 2025Robust Markov stability for community detection at a scale learned based on the structure15 Apr 2025
- 2023Analyzing Modularity Maximization in Approximation, Heuristic, and Graph Neural Network Algorithms for Community Detection17 Oct 2023
- 2023Normalized mutual information is a biased measure for classification and community detection3 Jul 2023
- 2023Heuristic Modularity Maximization Algorithms for Community Detection Rarely Return an Optimal Partition or Anything Similar28 Feb 2023