TL;DR
This paper introduces a novel order-based approach for efficiently maintaining $k$-core structures in large, frequently changing graphs. By explicitly tracking a total vertex ordering (called $k$-order) derived from core decomposition, the proposed algorithms dramatically reduce the search space and index overhead, outperforming state-of-the-art traversal methods by up to three orders of magnitude.
What Problem Does This Paper Address?
Graphs representing social networks, citation networks, and web links are constantly evolving as edges are added or removed. In graph analytics, identifying cohesive subgraphs is essential for tasks like community detection and network topology analysis. One of the most fundamental structures used for this is the $k$-core—the maximal subgraph where every vertex has a degree of at least $k$.
While finding $k$-cores in a static graph can be done efficiently in linear time, recomputing them from scratch every time the graph changes is computationally prohibitive. This gives rise to the core maintenance problem: dynamically updating the core numbers of affected vertices when edges are inserted or deleted.
The previous state-of-the-art approach, known as the traversal algorithm, searches for affected vertices within local regions. However, it suffers from two major drawbacks:
- High Performance Variance: For certain edge updates, the algorithm's search space explodes, forcing it to visit thousands of unaffected vertices.
- Expensive Index Maintenance: It relies on a metric called pure-core degree (
pcd), which requires costly multi-hop updates across the graph whenever a single vertex's core number changes.
Methods
The authors propose a shift from neighborhood-traversal metrics to an explicit, total vertex ordering called $k$-order ($\prec$). This ordering mimics the exact sequence in which vertices are eliminated during a standard bottom-up core decomposition algorithm.
The paper introduces two primary algorithms:
OrderInsert(Edge Insertion): When a new edge is added, instead of exploring the neighborhood blindly, the algorithm uses the $k$-order to "jump" directly between potential candidate vertices whose core numbers might increase. It introduces a new pruning metric called candidate degree to safely skip large blocks of vertices.OrderRemoval(Edge Removal): When an edge is deleted, it leverages a standard traversal to identify vertices whose core numbers drop, but updates the $k$-order index efficiently by shifting the affected vertices to the end of the preceding core block.
Data Structures
To make these order operations efficient in memory, the authors implement the $k$-order using an order statistics tree built on top of treaps. This allows the algorithm to compare the relative order of any two vertices and perform insertions/deletions in $O(\log n)$ time. A min-heap is also utilized to manage the "jumping" mechanism during insertion.
Datasets
The algorithms were evaluated on 11 large, publicly available real-world datasets from Konect and SNAP:
- Temporal Graphs: Facebook, Youtube, DBLP
- Social Networks: LiveJournal, Pokec, Orkut
- Citation Networks: Patents
- Web Graphs: BerkStan, Google
- Road Networks: CA
- Location-Based Networks: Gowalla
Key Insights and Ideas
- The Stability of Elimination Order: The core insight is that maintaining the sequence of a core decomposition is far more stable and less computationally expensive than maintaining localized neighborhood invariants like
pcd. - Order Core Boundedness: The search space of the new algorithm is bounded by a newly defined concept called the order core (
oc). As shown in the paper's analysis, the size and variance of order cores are significantly smaller than the "pure-cores" (pc) or "subcores" (sc) that dictate the performance of traversal algorithms.
- Heuristic Optimization: The authors discovered that a "small $deg^+$ first" heuristic during the initial index generation phase significantly minimizes the cascading update effect during edge insertions.
Key Results
The order-based approach consistently and significantly outperforms the traversal baseline across all datasets:
- Massive Speedups: For edge insertions on the
Pokecdataset,OrderInsertachieved a speedup of up to 2,083 times compared to the traversal algorithm. - Drastically Reduced Search Space: The ratio of visited vertices to actually updated vertices remains below 4 for the new algorithm across all test cases, whereas the traversal algorithm frequently visits up to 10,000 times more vertices than necessary.
- Trade-offs: This massive performance gain comes at the cost of memory. The order statistics trees and heap structures require about 5 times more space than the index used by the traversal algorithm, and index creation takes roughly twice as long. However, because index creation is a one-time cost, this trade-off is highly favorable for dynamic applications.
Limitations and Future Work
The primary limitation of this work is its memory footprint, making it strictly an in-memory solution. For truly massive, web-scale graphs that cannot fit entirely into RAM, the $O(n)$ space requirement of the order statistics trees could become a bottleneck.
The authors note that extending this order-based framework to semi-external memory or distributed settings remains an important and open direction for future research.
Summary updated