ESCAPE: Efficiently Counting All 5-Vertex Subgraphs
Not on the map. Why?
Abstract (arXiv)
Counting the frequency of small subgraphs is a fundamental technique in network analysis across various domains, most notably in bioinformatics and social networks. The special case of triangle counting has received much attention. Getting results for 4-vertex or 5-vertex patterns is highly challenging, and there are few practical results known that can scale to massive sizes. We introduce an algorithmic framework that can be adopted to count any small pattern in a graph and apply this framework to compute exact counts for all 5-vertex subgraphs. Our framework is built on cutting a pattern into smaller ones, and using counts of smaller patterns to get larger counts. Furthermore, we exploit degree orientations of the graph to reduce runtimes even further. These methods avoid the combinatorial explosion that typical subgraph counting algorithms face. We prove that it suffices to enumerate only four specific subgraphs (three of them have less than 5 vertices) to exactly count all 5-vertex patterns. We perform extensive empirical experiments on a variety of real-world graphs. We are able to compute counts of graphs with tens of millions of edges in minutes on a commodity machine. To the best of our knowledge, this is the first practical algorithm for 5-vertex pattern counting that runs at this scale. A stepping stone to our main algorithm is a fast method for counting all 4-vertex patterns. This algorithm is typically ten times faster than the state of the art 4-vertex counters.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Oct 2016.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 2; 2024: 1; 2025: 2.
8 papers.
- 2021Breaking the Limits of Message Passing Graph Neural Networkscited by 101
- 2021Size-Invariant Graph Representations for Graph Classification Extrapolationscited by 82
- 2023Learning to Count Isomorphisms with Graph Neural Networkscited by 13
- 2024Representation Learning for Frequent Subgraph Miningcited by 5
- 2023DeSCo: Towards Generalizable and Scalable Deep Subgraph Countingcited by 4
- 2025LLMTM: Benchmarking and Optimizing LLMs for Temporal Motif Analysis in Dynamic Graphscited by 4
- 2022Subgraph Frequency Distribution Estimation using Graph Neural Networkscited by 0
- 2025BEACON: A Benchmark for Efficient and Accurate Counting of Subgraphscited by 0
- 2025LLMTM: Benchmarking and Optimizing LLMs for Temporal Motif Analysis in Dynamic Graphs24 Dec 2025
- 2025BEACON: A Benchmark for Efficient and Accurate Counting of Subgraphs15 Apr 2025
- 2024Representation Learning for Frequent Subgraph Mining22 Feb 2024
- 2023DeSCo: Towards Generalizable and Scalable Deep Subgraph Counting16 Aug 2023
- 2023Learning to Count Isomorphisms with Graph Neural Networks7 Feb 2023
- 2022Subgraph Frequency Distribution Estimation using Graph Neural Networks14 Jul 2022
- 2021Breaking the Limits of Message Passing Graph Neural Networks8 Jun 2021
- 2021Size-Invariant Graph Representations for Graph Classification Extrapolations8 Mar 2021