TL;DR
This paper introduces DDSL, a novel system for efficiently listing subgraph matches in massive, dynamic graphs distributed across multiple machines. DDSL tackles the challenge of constantly changing graph data by enabling incremental updates to subgraph listings, avoiding costly recomputations from scratch.
What Problem Does This Paper Address?
Subgraph listing, the task of finding all occurrences of a smaller graph (pattern) within a larger graph (data graph), is a fundamental problem with applications in diverse fields like social network analysis, bioinformatics, and chemistry. However, modern real-world graphs are often enormous (billions of nodes and edges) and highly dynamic, with frequent additions and deletions of nodes and edges. Existing distributed subgraph listing algorithms struggle with this dynamism, as they typically require re-running the entire process from scratch after any graph update. This is computationally expensive and inefficient. DDSL aims to bridge this gap by providing an efficient solution for both static and, crucially, dynamic distributed subgraph listing.
Methods
DDSL employs a two-stage approach:
- Initial Calculation: This stage performs the initial subgraph listing on a static graph. It leverages a general distributed join framework, which involves:
- Neighbor-Preserved (NP) Storage: A distributed storage mechanism that stores local graph information for each vertex and its neighbors. This storage is designed to be space-efficient and support dynamic updates.
- R1 Units: A novel choice for join units, which are graphs with a radius of 1 (a vertex and its direct neighbors). This choice is motivated by its flexibility and its ability to be efficiently compressed and incrementally updated.
- Cost Model and Optimal Join Tree: A comprehensive cost model is developed to estimate the I/O cost of different join orders. A dynamic programming algorithm then finds the optimal join tree to minimize this cost.
- Match Compression (VCBC): To reduce storage and I/O, DDSL uses Vertex-Cover-Based Compression (VCBC) to store matches compactly.
- Incremental Updating: This stage handles graph updates efficiently.
- NP Storage Update: The NP storage is updated incrementally to reflect graph changes.
- Patch Set Computation (Nav-join): Instead of recomputing all matches, DDSL focuses on identifying only the newly-appeared matches (the "patch set"). This is achieved through a novel "Navigated Join" (Nav-join) algorithm, which uses a left-deep join tree and a partition-and-expand strategy to efficiently find these new matches.
- Result Update: The final updated match set is obtained by merging the old matches with the newly-found patch set and filtering out any invalid matches.
Datasets
The paper evaluates DDSL on four real-world datasets:
- WebGoogle (WG)
- WikiTalk (WT)
- LiveJournal (LJ)
- UK-2002 (UK)
Five pattern graphs (labeled q1 to q5) are used for evaluation.
Key Insights and Ideas
- R1 Units as Join Units: Using R1 units (vertex + neighbors) as join units is a key innovation. This choice offers a good balance between generality and efficiency, allowing for effective compression and incremental updates, which are crucial for dynamic graphs.
- Incremental Updates are Crucial: The core insight for dynamic graphs is that recomputing everything from scratch is prohibitively expensive. DDSL's focus on identifying and merging only the new matches (patch set) is a significant improvement.
- Nav-join for Patch Set Computation: The Nav-join algorithm is a clever way to find new matches without re-scanning the entire graph or recomputing all previous matches. It leverages the structure of dynamic updates and the distributed nature of the system.
- Cost Model for Join Tree Optimization: Optimizing the join order is critical in distributed systems. DDSL's comprehensive cost model and dynamic programming approach for finding the optimal join tree are essential for performance.
- Neighbor-Preserved Storage Efficiency: The NP storage mechanism is designed to be space-efficient, especially compared to methods that store all subgraphs (like cliques). This is important for managing large distributed datasets.
Key Results
- Static Graphs: DDSL outperforms existing methods (SEED and Crystal) in preprocessing time for constructing distributed storage, being up to 5 times faster. Its NP storage also uses less space (up to 4.6x extra space) compared to SEED and Crystal (7-10x extra space). On overall performance for static graphs, DDSL is competitive and often outperforms other methods, especially for more complex patterns.
- Dynamic Graphs: DDSL demonstrates highly efficient NP storage updates, with update times significantly less than construction times, even for large batch sizes (10^5 edges). The performance of updating match sets is also very efficient, with running times remaining low and increasing much slower than a competitor (Delta-BigJoin) as batch size grows. For some patterns, DDSL's update time is orders of magnitude faster than Delta-BigJoin.
Limitations and Future Work
- NP Storage Space: While DDSL's NP storage is more efficient than some alternatives, it can still require up to 4.6 times the space of the original graph.
- Pattern Graph Complexity: The paper notes that for certain patterns (e.g., q1 and q3), DDSL's update time grows faster than for simpler patterns (q2 and q4) because they involve join operations. Reducing join operations remains a key area for optimization.
- Future Work: The paper suggests that further optimizations for join operations and exploring more advanced compression techniques could lead to even better performance. The authors also highlight that DDSL is the first approach to support unlabeled and undirected pattern matching on dynamic graphs in a distributed environment, opening avenues for further research in this area.
Summary updated