How to Count Triangles, without Seeing the Whole Graph
Not on the map. Why?
Abstract (arXiv)
Triangle counting is a fundamental problem in the analysis of large graphs. There is a rich body of work on this problem, in varying streaming and distributed models, yet all these algorithms require reading the whole input graph. In many scenarios, we do not have access to the whole graph, and can only sample a small portion of the graph (typically through crawling). In such a setting, how can we accurately estimate the triangle count of the graph? We formally study triangle counting in the em random walk access model introduced by Dasgupta et al (WWW '14) and Chierichetti et al (WWW '16). We have access to an arbitrary seed vertex of the graph, and can only perform random walks. This model is restrictive in access and captures the challenges of collecting real-world graphs. Even sampling a uniform random vertex is a hard task in this model. Despite these challenges, we design a provable and practical algorithm, TETRIS, for triangle counting in this model. TETRIS is the first provably sublinear algorithm (for most natural parameter settings) that approximates the triangle count in the random walk model, for graphs with low mixing time. Our result builds on recent advances in the theory of sublinear algorithms. The final sample built by TETRIS is a careful mix of random walks and degree-biased sampling of neighborhoods. Empirically, TETRIS accurately counts triangles on a variety of large graphs, getting estimates within 5% relative error by looking at 3% of the number of edges.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 22 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 4; 2023: 0; 2024: 1; 2025: 1.
6 papers.
- 2022Agent-based Graph Neural Networkscited by 13
- 2024Revisiting Random Walks for Learning on Graphscited by 13
- 2025Long-range Brain Graph Transformercited by 11
- 2022Micro and Macro Level Graph Modeling for Graph Variational Auto-Encoderscited by 8
- 2022Degree-Preserving Randomized Response for Graph Neural Networks under Local Differential Privacycited by 7
- 2022Scalable Motif Counting for Large-scale Temporal Graphscited by 3
- 2025Long-range Brain Graph Transformer2 Jan 2025
- 2024Revisiting Random Walks for Learning on Graphs1 Jul 2024
- 2022Micro and Macro Level Graph Modeling for Graph Variational Auto-Encoders30 Oct 2022
- 2022Agent-based Graph Neural Networks22 Jun 2022
- 2022Scalable Motif Counting for Large-scale Temporal Graphs20 Apr 2022
- 2022Degree-Preserving Randomized Response for Graph Neural Networks under Local Differential Privacy21 Feb 2022