Subgraph Matching: A New Decomposition Based Approach
Qiyan Li, Jeffrey Yu, Zongyan He
Abstract
We study the subgraph matching problem, which is to find all subgraph isomorphisms of a given pattern graph p in a data graph G. Traditional approaches typically use a backtracking search approach or worst-case optimal join, both of which directly operate on p. In this paper, we revisit the tree decomposition based approach. For a complex pattern graph p , we find its optimal tree decomposition T based on the fractional hypertree width, where a node in T represents a subgraph of p , which is also called a bag, and a node in p may appear in multiple bags in T. The tree decomposition based approach initially computes and materializes the matches of subgraphs specified by the bags, then treats these matches as new relations and employs an acyclic join to compute the matches of p itself. However, previous approaches fail to integrate the tree decomposition with effective join attribute orders, and conversely, previous join attribute ordering approaches do not consider the need to share computations in multiple bags. Additionally, the materialization strategies in previous tree decomposition based approaches can lead to high computation costs. In this paper, we propose a new subgraph matching algorithm ASDMatch (Adaptive Shared Decomposition-based matching). We propose a new dynamic programming approach that finds optimal attribute orders for each bag based on a cost model that incorporates the computation sharing. Furthermore, we introduce a new adaptive materialization strategy to reduce the computation cost. We confirmed that our ASDMatch outperforms state-of-the-art algorithms and can process many challenging queries that previous algorithms can not finish within the time limit.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Subgraph Enumeration: Beyond Tree Decomposition cites GuP: Fast Subgraph Matching by Guard-based Pruning
- Subgraph Enumeration: Beyond Tree Decomposition cites RapidMatch: A Holistic Approach to Subgraph Query Processing
- Subgraph Enumeration: Beyond Tree Decomposition cites Versatile Equivalences: Speeding up Subgraph Query Processing and Subgraph Matching
- GuP: Fast Subgraph Matching by Guard-based Pruning cites RapidMatch: A Holistic Approach to Subgraph Query Processing
- GuP: Fast Subgraph Matching by Guard-based Pruning cites In-Memory Subgraph Matching: An In-depth Study
- RapidMatch: A Holistic Approach to Subgraph Query Processing cites In-Memory Subgraph Matching: An In-depth Study
Cited by top-tier papers2
Builds on16
- In-Memory Subgraph Matching: An In-depth StudyShixuan Sun, Qiong LuoSIGMOD 2020 · 159 citations
- RapidMatch: A Holistic Approach to Subgraph Query ProcessingShixuan Sun, Xibo Sun, Yulin Che, Qiong Luo et al.VLDB 2021 · 105 citations
- Adopting Worst-Case Optimal Joins in Relational Database SystemsMichael J. Freitag, Maximilian Bandle, Tobias Schmidt, Alfons Kemper et al.VLDB 2020 · 79 citations
- Versatile Equivalences: Speeding up Subgraph Query Processing and Subgraph MatchingHyunjoon Kim, Yunyoung Choi, Kunsoo Park, Xuemin Lin et al.SIGMOD 2021 · 75 citations
- GuP: Fast Subgraph Matching by Guard-based PruningJunya Arai, Yasuhiro Fujiwara, Makoto OnizukaSIGMOD 2023 · 45 citations
Related papers
- MuSha: Subgraph Matching by Multilevel SharingHongtai Cao, Qihao Wang, Xiaodong Li, Mohammad Matin Najafi et al.ICDE 2025 · 1 citation
- MAVIS: Materialized View for Subgraph MatchingLisheng Cao, Xiangyang Gou, Lei Zou, Wenjie ZhangSIGMOD 2026 · 3 citations
- Fast Local Subgraph CountingQiyan Li, Jeffrey Xu YuVLDB 2024 · 4 citations
- Efficient Hypergraph Pattern Matching via Match-and-Filter and Intersection ConstraintSiwoo Song, Wonseok Shin, Kunsoo Park, Giuseppe F. Italiano et al.ICDE 2026
- A Branch-&-Bound Algorithm for Fractional Hypertree DecompositionZongyan He, Jeffrey Xu YuVLDB 2024 · 2 citations
