Algebraic Subgraph Counting

📅 2026-06-27
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of efficiently handling non-tree edge constraints and injective mappings in subgraph isomorphism counting. The authors propose a novel candidate tree–based framework that, for the first time, algebraically embeds non-tree edge constraints directly into the candidate tree structure. By leveraging matrix operations, the method enables efficient subgraph homomorphism counting and incorporates local sampling to enforce injectivity—eliminating the need for learning-based approaches or global sampling. The resulting algorithm scales polynomially to graphs with billions of edges and significantly outperforms existing methods across multiple datasets. Notably, as a non-learning approach, it achieves average accuracy more than an order of magnitude higher than FlowSC, the current state-of-the-art learning-based method.
📝 Abstract
Subgraph isomorphism counting is a fundamental problem in graph analytics, which aims to find the number of subgraph isomorphisms of a query graph in a data graph. The candidate tree-based framework provides a promising foundation for subgraph counting tasks, offering a unified counting paradigm that can be extended beyond tree patterns. However, supporting subgraph isomorphism within this framework remains challenging, as it requires handling both the non-tree edge constraint and the injective mapping constraint. Although existing solutions employ sampling or learning techniques to address these constraints in this framework, they still either suffer from inherent sampling failures or rely heavily on supervision. In this paper, we propose ASC, an algebraic subgraph counting approach built on the candidate tree-based counting framework. In our method, the non-tree edge constraint is directly incorporated into the candidate tree-based counting process through a matrix-based computation method, enabling subgraph homomorphism counting with high accuracy in polynomial time. Based on the resulting subgraph homomorphism count, we further apply a local sampling method to address the injective mapping constraint, thereby obtaining the final subgraph isomorphism count. Extensive experiments show that ASC can achieve substantially better and more stable performance over the baselines across various datasets, while scaling to billion-edge graphs. Most impressively, as a non-learning method, ASC can even achieve more than an order of magnitude higher average accuracy than the state-of-the-art learning-based method FlowSC with similar efficiency. This paper is the full version of the work accepted at SIGMOD 2027. The code is available at https://github.com/EricaGuoQiuyu/AlgebraicSubgraphCounting.
Problem

Research questions and friction points this paper is trying to address.

subgraph isomorphism counting
candidate tree-based framework
non-tree edge constraint
injective mapping constraint
graph analytics
Innovation

Methods, ideas, or system contributions that make the work stand out.

algebraic subgraph counting
candidate tree
subgraph isomorphism
matrix-based computation
injective mapping
🔎 Similar Papers
No similar papers found.