TriFMatch: a flash subgraph matching algorithm with effective filtering techniques

Jiezhong He, Yixin Chen, Menghan Jia, Zhouyang Liu, Dong‐Sheng Li, T. H. LeeResearch Square 2025

Abstract

<title>Abstract</title> Subgraph matching, as a fundamental operation for graph analysis, aims to extract all subgraphs in a data graph that are identical to a query graph. This task is computationally expensive due to its vast search space. However, existing optimizations face limitations, including insufficient branch pruning, low compression ratios, and over-pruning risks. To overcome these limitations, we propose TriFMatch, featuring three optimizations: (1) a novel query compression technique using successor equivalency, which generalizes existing methods based on neighbor equivalency; (2) a failure-driven filter; and (3) a containment-driven filter. These filters leverage dynamically computed candidates to maximize pruning efficiency. We theoretically and experimentally prove the correctness of all our methods. Experimental results reveal that TriFMatch outperforms state-of-the-art methods on both large query and data graphs, achieving speedups of up to $660\times$. Additionally, on standard datatsets from prior studies, TriFMatch successfully solves all queries within a limited time frame.
BibTeX
@inproceedings{he2025trifmatch,
  author = {Jiezhong He and Yixin Chen and Menghan Jia and Zhouyang Liu and Dong‐Sheng Li and T. H. Lee},
  title = {{TriFMatch: a flash subgraph matching algorithm with effective filtering techniques}},
  booktitle = {Research Square},
  year = {2025},
  doi = {10.21203/rs.3.rs-6962397/v1},
}

Loading related content...

Figure