Abstract
Community detection via modularity maximization is a cornerstone of network analysis. However, the standard Newman-Girvan null model assumes a globalized connectivity pattern that ignores node similarity, leading to the well-known resolution limit. This paper introduces Dist-Modularity, a framework that generalizes modularity by incorporating distance-based deterrence functions into the null model. By introducing a tunable interaction range parameter $\sigma$, Dist-Modularity enables multi-scale community detection and integrates non-topological data. Results on benchmark and real-world networks demonstrate superior performance in identifying ground-truth communities and uncovering hierarchical structures.
Introduction
In network science, modularity is the standard metric for identifying communities—subsets of nodes with dense internal connections. Modularity is calculated by comparing the observed network structure against a "null model," typically the Configuration Model, which represents a randomized version of the network. While effective, this approach assumes that any two nodes are equally likely to connect regardless of their inherent similarity or spatial proximity. This "globalized" assumption often results in the resolution limit, where small, significant communities are overlooked in large networks.
The Dist-Modularity Framework
The proposed Dist-Modularity framework addresses these limitations by grounding the null model in "data field theory." Instead of a uniform baseline, the expected number of edges between nodes is weighted by a deterrence function $f(d_{ij}) = e^{-(d_{ij}/\sigma)^2}$, where $d_{ij}$ is a distance metric and $\sigma$ is the interaction range.
- Distance Function ($d_{ij}$): This can represent structural similarity (e.g., Jaccard distance) or external attributes (e.g., Euclidean distance between geographical coordinates).
- Interaction Range ($\sigma$): This parameter acts as a "dial" for the field range. At small $\sigma$, nodes only interact locally; as $\sigma \to \infty$, the model converges to standard Newman-Girvan modularity.
Multi-Scale Community Detection
One of the most powerful features of Dist-Modularity is its ability to explore community structures at different scales. By varying $\sigma$, researchers can transition from fine-grained local clusters to broad, global partitions.
As illustrated above, the framework provides a mathematical bridge between spectral clustering (at $\sigma \to 0$) and standard modularity (at $\sigma \to \infty$). This unification allows for a continuous spectrum of community analysis.
Experimental Validation
The authors validated Dist-Modularity using several benchmark networks, including Zachary’s Karate Club and the Bottlenose Dolphin network. In these cases, standard modularity often over-partitions the network due to the resolution limit.
In the dolphin network (Figure 4), Dist-Modularity with a tuned $\sigma$ correctly identified the true two-group split that occurred during the study period, whereas standard modularity partitioned the group into four smaller communities. Similar improvements were observed in the Karate Club dataset.
Context-Aware Analysis: The Ivory Coast Case Study
Applying Dist-Modularity to the Antenna-to-Antenna network (D4D) in Ivory Coast revealed the importance of geographical context. By using physical distance in the null model, the algorithm identified communities that closely aligned with the country's 19 administrative regions at a fine scale. As $\sigma$ increased, these regions merged into larger socio-economic clusters, demonstrating the framework's utility for multi-scale spatial analysis.
Conclusion
Dist-Modularity offers a robust solution to the resolution limit by replacing the unrealistic globalized null model with a distance-aware alternative. By treating modularity as a spectrum controlled by the interaction range $\sigma$, it provides a flexible tool for multi-scale network analysis. Future work will focus on automating the selection of the optimal $\sigma$ and further exploring the theoretical boundaries of the resolution limit within this framework.
Summary updated