Abstract
Maintaining $k$-core values in dynamic graphs is a critical task for real-time network analysis. Traditional sequential algorithms create a bottleneck when processing large batches of updates. This paper introduces the first parallel algorithms for core maintenance, leveraging a novel structural property called the "superior edge set." By ensuring that core numbers change by at most one during a batch update, our framework achieves up to a 1,000x speedup over state-of-the-art sequential methods on massive real-world datasets.
Introduction
In graph theory, the $k$-core is defined as a maximal subgraph where every vertex has at least $k$ neighbors within that subgraph. The "core number" of a vertex—the highest $k$ for which it belongs to a $k$-core—is a fundamental metric used to identify influential nodes in social networks, analyze internet topology, and visualize complex datasets.
Modern networks like Facebook or the World Wide Web are inherently dynamic, with edges and vertices constantly being added or deleted. While static core computation is efficient, recomputing core numbers from scratch for every update is computationally prohibitive. Existing core maintenance algorithms update only affected regions but typically process changes sequentially. This paper addresses the need for high-throughput updates by parallelizing the maintenance process.
Methodology: The Superior Edge Set
The core contribution of this work is a parallel framework for both incremental (insertions) and decremental (deletions) updates. This is made possible by the discovery of the Superior Edge Set.
The "At Most 1" Rule
A superior edge set is a collection of edges where each vertex is connected to at most one "superior" neighbor (a neighbor with an equal or higher core number). The authors mathematically prove that if a superior edge set is inserted or deleted, the core number of any vertex in the graph can change by at most 1. This theoretical guarantee allows the algorithm to process all edges in a superior edge set simultaneously without risk of interference.
Two-Phase Update Framework
To process a batch, the algorithm partitions updates into multiple superior edge sets and applies a two-phase update for each:
- Positive DFS (Depth-First Search): Identifies a candidate set of vertices whose core numbers might change.
- Negative DFS: Prunes the candidate set, removing vertices that do not meet the criteria for a core number shift after the update.
Experimental Evaluation
The researchers evaluated the algorithms using a mix of real-world and synthetic datasets:
- Real-World: Seven graphs from the SNAP collection, including LiveJournal (4M nodes, 34.7M edges), YouTube, DBLP, and WikiTalk.
- Synthetic: Graphs generated using Erdős-Rényi (ER), Barabási-Albert (BA), and R-MAT (RM) models to test various network topologies.
Key Results and Insights
- Massive Speedups: The parallel approach achieved an acceleration ratio of up to 1,000x compared to the state-of-the-art sequential algorithm (TRAVERSAL) on large datasets like LiveJournal.
- Scalability: Efficiency improves as the batch size of inserted/deleted edges increases, making the algorithm ideal for high-velocity data streams. Average processing time per edge remained below 1.2 milliseconds in most cases.
- Structural Parallelism: The algorithm's performance is tied to the graph's "cohesiveness." In social networks with widely distributed core numbers, the algorithm finds significant opportunities for parallelism.
Conclusion and Future Work
By breaking the sequential bottleneck, this framework enables real-time core maintenance on a scale previously unattainable. While performance can be limited in specific synthetic models (like BA) where core numbers are highly uniform, the "superior edge set" provides a robust foundation for parallel graph analytics. Future work will explore applying similar parallel logic to other complex metrics, such as betweenness centrality.
Summary updated