Abstract
Social networks have become integral to modern life, characterized by a common feature: community structure. These networks consist of subgroups (communities) where internal connections are dense and external connections are sparse. Detecting these structures is essential for uncovering the underlying dynamics of social interactions. This paper proposes a three-phase hierarchical algorithm that improves upon traditional methods by combining degree-based division, modularity-driven agglomeration, and a vertex-moving refinement phase.
Introduction
In social network analysis, identifying communities—clusters of nodes with high intra-group connectivity—is vital for applications ranging from recommendation systems to epidemic modeling. However, classic approaches like the Girvan-Newman (GN) algorithm face significant hurdles. The original GN algorithm is computationally expensive, with a complexity of $O(n^3)$, and lacks a definitive termination condition. While "Fast GN" variants improved speed through bottom-up agglomeration, they often fall into "greedy" local optima, where early merging mistakes cannot be corrected. This research introduces a three-phase approach designed to balance computational efficiency with partitioning accuracy.
Methodology
The proposed algorithm moves beyond simple greedy merging by incorporating three distinct stages:
- Division Phase: To avoid the overhead of starting with every node as an individual community, the algorithm creates an initial "rough draft." It identifies high-degree nodes and assigns their neighbors to a community based on a connectivity threshold ($C_u$). This threshold is inversely proportional to a node's degree, allowing lower-degree nodes to be grouped easily while keeping high-degree "hubs" distinct.
- Agglomeration Phase: Using the logic of Fast GN, the algorithm iteratively merges the initial communities to maximize modularity ($Q$). This phase continues until no further increase in $Q$ is possible.
- Refinement Phase: This critical final step introduces "vertex moving." Individual nodes are reassessed and moved between communities if the move increases the overall modularity of the network. This allows the algorithm to correct errors made during the earlier greedy phases.
As shown in Figure 1, the three-phase algorithm provides a more intuitive and balanced partition of network structures compared to traditional divisive methods, which may fail to identify clear boundaries in ambiguous topologies.
Experimental Evaluation
The algorithm was tested on three benchmark datasets: Zachary’s Karate Club (34 nodes), US Political Books (105 nodes), and the US Football Association (115 nodes). These datasets represent varying levels of density ($E/N$), which the authors found to be correlated with the clarity of the resulting community structures.
Key Results
The three-phase algorithm consistently outperformed Fast GN in both modularity ($Q$) and Normalized Mutual Information (NMI). While Fast GN often over-partitioned networks—finding four communities in the Political Books dataset where only three exist—the proposed algorithm correctly identified the ground-truth structures.
Quantitative results for the US Football Association dataset (Figure 6) highlight the algorithm's superiority. The Three-phase approach achieved the highest modularity ($Q = 0.5658$) and a significantly better NMI ($0.5856$) compared to Fast GN ($0.5032$). Similar gains were observed in the Political Books dataset, where NMI improved from $0.6535$ to $0.8832$.
Conclusion
By integrating a refinement phase into a hierarchical framework, the three-phase algorithm effectively addresses the limitations of greedy community detection. It achieves higher accuracy and better alignment with real-world ground truth while maintaining a scalable $O(n^2)$ complexity. Future work will focus on extending this hierarchical logic to detect overlapping communities, reflecting the multi-faceted nature of real-world social affiliations.
Summary updated