Abstract
Graph pattern matching is a fundamental task in graph mining, yet state-of-the-art algorithms are primarily optimized for undirected graphs. Directed graph matching introduces significant complexity due to edge directionality, which complicates storage and symmetry-breaking techniques. We present XMiner, a system designed for efficient directed graph matching through "pattern reduction." By identifying a minimum constraint cover, XMiner simplifies pattern digraphs, reducing redundant data access and computation. Experimental results demonstrate that XMiner outperforms existing systems by up to six orders of magnitude and scales effectively to large-scale graphs with billions of arcs.
The Challenge of Directed Subgraph Matching
Finding instances of a small query pattern within a large data graph is essential for network analysis. However, directed graphs present three primary hurdles that traditional undirected matching systems struggle to overcome:
- Structural Complexity and Lack of Symmetry: Directed graphs exhibit more intricate structural patterns and significantly less symmetry than undirected ones. Traditional symmetry-breaking pruning techniques are often ineffective here.
- Redundant Data Access: In large-scale graphs, different edges within a pattern frequently share identical matchings. Existing systems often re-fetch this data repeatedly, leading to inefficiencies.
- Redundant Exploration: Current approaches often fail to recognize that matchings for one edge may be a subset of another. Checking these relationships repeatedly wastes significant CPU and memory resources.
Methodology: Pattern Reduction and Execution
The core innovation of XMiner is its Pattern Reduction strategy. Rather than matching the full pattern graph directly, XMiner simplifies it into a "minimum constraint cover."
Constraint Inclusion and Reduction
XMiner defines a Constraint Inclusion Relationship, where the matchings of one constraint (e.g., an edge or vertex) are logically contained within another. For instance, if edge (a, c) is more restrictive than (b, c) due to vertex properties, the matchings for (a, c) form a subset of those for (b, c). XMiner uses a heuristic algorithm to identify these relationships and find a minimum set of edges—a constraint cover—that represents the entire pattern.
Efficient Execution Planning
Once reduced, XMiner generates an execution plan that prioritizes the most restrictive components. It materializes these intermediate results and then "restores" the removed edges by reusing existing data, thereby avoiding redundant scans of the data graph.
To ensure high performance on multi-core architectures, XMiner employs a work-stealing multithreading model, providing scalability without heavy synchronization overhead.
Experimental Evaluation
The authors evaluated XMiner across 10 real-world datasets, ranging from small networks like Ego-Facebook to massive graphs like Friendster (1.8 billion arcs).
Key Results
- Performance Gains: XMiner outperformed GraphPi by an average of 8,329x and Peregrine by 6,677x.
- Complex Pattern Handling: For highly complex patterns (e.g.,
7_pb), XMiner achieved speedups exceeding 185,000x compared to Peregrine. - Scalability: XMiner was the only system capable of completing complex tasks on the largest datasets (Friendster and Enwiki) within a 24-hour window, where competitors either timed out or failed to load the data.
- Reduction Efficacy: Pattern reduction significantly decreased the exploration space; for certain 7-vertex patterns, the number of edges to explore was reduced from 15 to just 6.
Conclusion and Future Directions
XMiner demonstrates that matching a simplified pattern and logically filling the gaps is vastly superior to brute-force matching of complex directed patterns. While highly effective, the system currently relies on a heuristic for the NP-complete minimum constraint cover problem and is optimized for single-machine multi-core environments. Future work may explore distributed implementations to handle even larger web-scale graphs.
Summary updated