Bayan algorithm: Detecting communities in networks through exact and approximate optimization of modularity
- 24 October 2024
- journal article
- research article
- Published by American Physical Society (APS) in Physical Review E
- Vol. 110 (4) , 044315
Abstract
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.Keywords
All Related Versions
Funding Information
- Data Sciences Institute at the University of Toronto
This publication has 74 references indexed in Scilit:
- Subnetwork constraints for tighter upper bounds and exact solution of the clique partitioning problemMathematical Methods of Operations Research, 2023
- Graph neural network inspired algorithm for unsupervised network community detectionApplied Network Science, 2022
- Correlation Clustering2022
- A modeling and computational study of the frustration index in signed networksNetworks, 2019
- CDLIB: a python library to extract, compare and evaluate communities from complex networksApplied Network Science, 2019
- Generating realistic scaled complex networksApplied Network Science, 2017
- The many facets of community detection in complex networksApplied Network Science, 2017
- Defining and evaluating network communities based on ground-truthKnowledge and Information Systems, 2013
- Reformulation of a model for hierarchical divisive graph modularity maximizationAnnals of Operations Research, 2012
- An Efficient Heuristic Procedure for Partitioning GraphsBell System Technical Journal, 1970