Beyond Maximum Common Subgraph: A Framework Maximizing Shared Computation for Multi-Query Subgraph Matching
Open Access
- 18 May 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Management of Data
- Vol. 4 (3) , 1-27
Abstract
Subgraph matching, a fundamental operation in graph analytics, delivers all occurrences of a query pattern within a large data graph. Graph systems often require processing large batches of such queries simultaneously. The existing multi-query approaches typically aim to optimize this process by exploiting the maximum common subgraph (MCS) among query graphs. However, identifying MCS is computationally prohibitive and does not necessarily maximize computational reuse, leading to substantial redundancy and limited scalability. In this paper, we propose MASC, a novel framework for subgraph matching with M ulti-query A cceleration via S hared C omputation. We introduce signature-based joint filtering that enables shared computation in the filtering phase, significantly improving filtering efficiency across queries. Building on this, we propose the visit-once paradigm that leverages shared candidates rather than just shared structure size, ensuring each shared candidate in the data graph is processed only once and further maximizing computation sharing. To further enhance sharing, we develop the shared block reuse that exploits multiple overlapping substructures among queries. Compared to existing methods that leverage only a single overlap, the shared computations are further substantially increased. We conducted extensive experiments on real-world datasets across various domains. The results demonstrate that MASC achieves significant improvements, achieving substantial speedup over state-of-the-art methods, with up to two orders of magnitude improvement.Keywords
Funding Information
- National Natural Science Foundation of China (No. 62572126)
- Key projects of the National Natural Science Foundation of China (No. U23A20496)
This publication has 47 references indexed in Scilit:
- Pilos: Scalable Large-Subgraph Matching by Online Spectral Filtering2025
- Efficient Multi-Query Oriented Continuous Subgraph Matching2024
- Hybrid Subgraph Matching Framework Powered by Sketch Tree for Distributed Systems2022
- PARSEC: PARallel Subgraph Enumeration in CUDA2022
- Towards Efficient Distributed Subgraph Enumeration Via Backtracking-Based FrameworkIEEE Transactions on Parallel and Distributed Systems, 2021
- VF2++—An improved subgraph isomorphism algorithmDiscrete Applied Mathematics, 2018
- Challenging the Time Complexity of Exact Subgraph Isomorphism for Huge and Dense Graphs with VF3IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- Scalable Multi-query Optimization for SPARQL2012
- Network biology: understanding the cell's functional organizationNature Reviews Genetics, 2004
- Monte Carlo sampling methods using Markov chains and their applicationsBiometrika, 1970