Dynamic Structural Clustering on Graphs

Boyu Ruan, Junhao Gan, Hao Wu, Anthony Wirth

Abstract

Structural clustering (SCAN) is a powerful graph analysis technique that identifies specialized node roles such as cores, hubs, and noise. However, its application to massive dynamic graphs has been limited by an $O(n)$ update cost per edge change. This paper introduces DynStrClu, the first algorithm to achieve poly-logarithmic amortized update time. By relaxing the similarity requirement to a $\rho$-approximate notion and utilizing a novel distributed tracking mechanism, DynStrClu achieves up to a 1000x speedup over state-of-the-art methods while maintaining high clustering quality on graphs with over a billion edges.

1. Introduction

Structural clustering (StrClu) is essential for understanding the underlying architecture of complex networks. Unlike traditional community detection, StrClu distinguishes between cluster members (cores), nodes that bridge multiple clusters (hubs), and isolated outliers (noise). This granular classification is vital for applications ranging from social network analysis to fraud detection.

Figure 1: Overview of structural clustering. (a) Input graph $G$ with edge similarities. (b) The sim-core graph $G_{core}$. (c) Final clustering result identifying cores, hubs, and noise. (d) Updated clustering after deleting edge $(u, w)$.

Despite its utility, the standard SCAN algorithm and its dynamic variants (e.g., pSCAN, hSCAN) face a significant scalability bottleneck. In a dynamic environment where edges are frequently added or deleted, these methods often require $O(n)$ time to update the clustering, where $n$ is the number of vertices. For massive graphs like the Twitter-2010 network (1.2 billion edges), this complexity makes real-time maintenance impossible.

2. Methodology: DynStrClu

The core innovation of this work is the transition from exact structural similarity to a $\rho$-approximate framework. This approximation provides the necessary "leeway" to avoid constant re-computations.

2.1 $\rho$-Approximate Similarity

The authors define a "does-not-matter" range for edge similarities. An edge's label (similar or dissimilar) is only updated when its similarity crosses the threshold $\epsilon$ by a margin determined by $\rho$. This is theoretically supported by a "Sandwich Guarantee," which proves that approximate clusters are bounded between exact clusters of slightly different thresholds, ensuring high quality.

2.2 DynELM and Distributed Tracking

The engine of the algorithm, DynELM (Dynamic Edge Labelling Maintenance), manages edge labels efficiently using Distributed Tracking (DT). In this scheme, each edge acts as a coordinator, and its endpoints are participants. Each edge is assigned a "slack" budget of updates. As incident edges change, the participants report to the coordinator. Only when the budget is exhausted does the algorithm perform a re-evaluation using a sampling-based estimator.

Figure 1(d): Detail of the clustering result after deleting the edge $(u, w)$, demonstrating the algorithm's ability to maintain structural roles dynamically.

2.3 Dynamic Connectivity

To maintain the actual clusters, DynStrClu integrates a dynamic connectivity data structure. This allows the algorithm to support "cluster-group-by" queries in $O(|Q| \log n)$ time, where $Q$ is the query set.

3. Experimental Results

The authors evaluated DynStrClu on 15 real-world datasets from the SNAP repository, including social networks (LiveJournal, Pokec) and web graphs (Google).

3.1 Efficiency and Scalability

On large datasets, DynStrClu demonstrated a 1000x speedup over pSCAN and hSCAN. Most notably, on the 1.2-billion-edge Twitter-2010 graph, the algorithm maintained an average update cost of less than 100 microseconds. While competing methods failed to even load the graph within a reasonable timeframe, DynStrClu processed the entire update sequence in approximately 30 hours.

3.2 Clustering Quality

Despite the use of approximation, the clustering results remained highly accurate. Using the Adjusted Rand Index (ARI), the authors found that scores were typically above 0.99 when the approximation parameter $\rho$ was set to 0.01, indicating that the results are nearly identical to exact clustering.

4. Conclusion

DynStrClu represents a significant leap forward in dynamic graph mining. By leveraging approximation and lazy evaluation through distributed tracking, it breaks the $O(n)$ update barrier, enabling structural clustering on a global scale. Future work includes extending this framework to directed graphs and optimizing memory overhead for even larger-scale deployments.

Summary updated

BibTeX
@inproceedings{ruan2021dynamic,
  author = {Boyu Ruan and Junhao Gan and Hao Wu and Anthony Wirth},
  title = {{Dynamic Structural Clustering on Graphs}},
  booktitle = {SIGMOD},
  year = {2021},
  doi = {10.1145/3448016.3452828},
}
Figure