English

CEMR: An Effective Subgraph Matching Algorithm with Redundant Extension Elimination

Databases 2026-03-11 v2

Abstract

Subgraph matching is a fundamental problem in graph analysis with a wide range of applications. However, due to its inherent NP-hardness, enumerating subgraph matches efficiently on large real-world graphs remains highly challenging. Most existing works adopt a depth-first search (DFS) backtracking strategy, where a partial embedding is gradually extended in a DFS manner along a branch of the search trees until either a full embedding is found or no further extension is possible. A major limitation of this paradigm is the significant amount of duplicate computation that occurs during enumeration, which increases the overall runtime. To overcome this limitation, we propose a novel subgraph matching algorithm, CEMR. It incorporates two techniques to reduce duplicate extensions: common extension merging, which leverages a black-white vertex encoding, and common extension reusing, which employs common extension buffers. In addition, we design two pruning techniques to discard unpromising search branches. Extensive experiments on real-world datasets and diverse query workloads demonstrate that CEMR outperforms state-of-the-art subgraph matching methods.

Keywords

Cite

@article{arxiv.2603.08037,
  title  = {CEMR: An Effective Subgraph Matching Algorithm with Redundant Extension Elimination},
  author = {Linglin Yang and Xunbin Su and Lei Zou and Xiangyang Gou and Yinnian Lin},
  journal= {arXiv preprint arXiv:2603.08037},
  year   = {2026}
}

Comments

Accepted to PVLDB (VLDB 2026). This arXiv version contains the full version of the paper

R2 v1 2026-07-01T11:09:46.373Z