Abstract
In dynamic network environments, community structures evolve continuously. Traditional batch-oriented community detection algorithms, such as DEMON, are computationally expensive as they require full re-processing for every graph update. This paper introduces an incremental version of the DEMON algorithm that optimizes local structure updates and community merging. By employing Incremental Ego Minus Ego (EME) extraction, localized Label Propagation (LP), and a novel Community Mapping Table for merging, the proposed method achieves speedups of up to 107x over batch methods on real-world datasets like IMDb and Amazon, while maintaining detection accuracy.
Introduction
Community detection is a fundamental task in network analysis, with applications ranging from social media recommendation engines to anomaly detection in financial transactions. However, real-world graphs are rarely static; they are dynamic streams where nodes and edges are added or removed at high frequencies. Most existing algorithms treat these graphs as static snapshots, necessitating a complete "reset" and re-analysis whenever the topology changes. This paper addresses the inefficiency of batch-oriented approaches by proposing an incremental framework for the local-first DEMON algorithm.
Problem Statement
The primary challenge in dynamic community detection is the computational overhead of global re-calculation. In a network with millions of nodes, a single edge addition typically only affects its immediate neighborhood. Batch algorithms fail to exploit this locality, leading to redundant computations. An effective incremental approach must identify and update only the affected local structures without sacrificing the quality of the global community detection.
Methodology
The proposed method builds upon the DEMON (Democratic Estimate of COmmunity Membership) algorithm, which is inherently suited for incrementalization due to its "local-first" nature. The researchers overhauled three core components:
- Incremental Ego Minus Ego (EME): Instead of re-extracting ego networks for the entire graph, the system only reconstructs EME networks for the immediate neighbors of a modified vertex.
- Incremental Label Propagation (LP): Label propagation is restricted to these newly modified local networks, significantly reducing the search space for community discovery.
- Optimized Merge Function: The original DEMON algorithm's merge phase is a major bottleneck, as it performs exhaustive pairwise comparisons between all local communities. The authors introduced a Community Mapping Table that tracks vertex-to-community memberships. This allows the algorithm to perform targeted comparisons only between communities that share common vertices.
Experimental Evaluation
The method was evaluated on three real-world datasets of varying scales:
- Congress: A dense collaboration network (536 vertices, ~14k edges).
- IMDb: An actor co-occurrence network (56k vertices, ~185k edges).
- Amazon: A large-scale co-purchase network (410k vertices, ~2.4M edges).
Results
The incremental approach demonstrated substantial performance improvements across all datasets. For updates involving 100 edges, the method was approximately 100 times faster than the original batch DEMON. In the IMDb dataset, community detection latency was reduced to sub-second levels. On the large-scale Amazon dataset, the incremental update took approximately 10 seconds, compared to over an hour for the batch re-process. Crucially, these speedups were achieved without a loss in detection accuracy.
Conclusion
By focusing on local updates and optimizing the community merge phase with a mapping table, the authors successfully transformed the DEMON algorithm into a high-performance tool for dynamic graph analysis. Future work will address memory constraints for billion-scale graphs through distributed computing and further refine handling for vertex and edge deletions.
Summary updated