Introduction
In modern data ecosystems, graphs representing social networks, financial transactions, or web links are rarely static. These "evolving graphs" change continuously as edges and vertices are added or removed. Analyzing these changes across multiple snapshots is critical for tracking temporal properties, yet traditional streaming graph analytics frameworks face significant performance bottlenecks.
The primary challenge lies in the deletion penalty. In many graph algorithms, deleting an edge is computationally more expensive than adding one—often by a factor of three. Deletions can invalidate existing paths, necessitating complex re-computations to maintain correctness. Furthermore, the standard sequential processing model creates serial dependencies that limit parallelism and prevent work-sharing across non-adjacent snapshots.
Methodology: The CommonGraph Framework
CommonGraph addresses these bottlenecks by fundamentally reimagining how snapshot transitions are handled. Instead of incremental updates that include costly deletions, CommonGraph identifies a Common Graph—the intersection of all edges present across all snapshots in a given time window.
The framework employs three core techniques:
- Converting Deletions to Additions: By starting from the "lowest common denominator" (the Common Graph), the system only needs to perform edge additions to reach any specific snapshot. This effectively eliminates the deletion penalty during the computation phase.
- Triangular Grid (TG): To optimize across many snapshots, the TG structure identifies "sub-common" graphs shared by subsets of snapshots. This allows the system to process shared edge additions once and reuse the results across multiple snapshots.
- Parallelism and Mutation-Free Representation: Since snapshots are constructed independently from the common base rather than sequentially, they can be processed in parallel. The engine uses a representation that avoids the overhead of physical memory mutations for every update.
Evaluation and Results
The researchers evaluated CommonGraph using 50 snapshots from four diverse datasets: LJ (LiveJournal), DL (DBLP), Wen, and TTW (Twitter). Each snapshot transition involved a batch of 75,000 edge changes. The system was tested against five algorithms: Breadth-First Search (BFS), Single-Source Shortest Path (SSSP), Single-Source Widest Path (SSWP), Single-Source Narrowest Path (SSNP), and Vertex Tracking (VT).
CommonGraph was compared against KickStarter, a state-of-the-art streaming framework. The results, summarized in the table below, demonstrate significant performance gains.
Key findings include:
- Speedups: CommonGraph achieved improvements ranging from 1.38x to 8.17x over KickStarter.
- Consistency: Gains were robust across all datasets and algorithms. For the DL dataset, the Direct-Hop (DH) variant consistently provided over 6.7x speedup.
- Work-Sharing Efficiency: The Work-Sharing (WS) approach, utilizing the Triangular Grid, consistently outperformed the Direct-Hop approach, validating the strategy of identifying overlapping data across non-sequential snapshots.
Conclusion and Future Work
CommonGraph demonstrates that for evolving graph analytics, finding the intersection of data points and building upward is often more efficient than moving incrementally between snapshots when "downward" moves (deletions) are expensive. By breaking the sequential chain, the framework unlocks significant parallel processing potential.
Future research may explore the memory-performance trade-offs inherent in maintaining the Common Graph and Triangular Grid structures. Additionally, investigating the optimal "time window" size is crucial, as windows that are too large may result in a sparse common base, increasing the workload of the addition phase. While highly effective for monotonic algorithms, the generalizability of this approach to non-monotonic dynamic graph algorithms remains an open question.
Summary updated