Why do simple algorithms for triangle enumeration work in the real world?
Jonathan W. Berry, Luke A. Fostvedt, Daniel J. Nordman and, Cynthia A. Phillips, C. Seshadhri, Alyson G. Wilson

TL;DR
This paper explains why simple triangle enumeration algorithms perform efficiently on real-world graphs with heavy-tailed degree distributions, showing their expected linear runtime for certain degree sequences.
Contribution
It provides a theoretical analysis linking the algorithm's efficiency to the degree sequence's norm, explaining empirical speedups on real-world graphs.
Findings
Expected linear-time performance for degree sequences with power-law exponent ≥ 7/3.
Non-trivial speedups for degree exponents between 2 and 3.
Algorithm's efficiency is controlled by the degree sequence's _{4/3}-norm.
Abstract
Listing all triangles is a fundamental graph operation. Triangles can have important interpretations in real-world graphs, especially social and other interaction networks. Despite the lack of provably efficient (linear, or slightly super-linear) worst-case algorithms for this problem, practitioners run simple, efficient heuristics to find all triangles in graphs with millions of vertices. How are these heuristics exploiting the structure of these special graphs to provide major speedups in running time? We study one of the most prevalent algorithms used by practitioners. A trivial algorithm enumerates all paths of length , and checks if each such path is incident to a triangle. A good heuristic is to enumerate only those paths of length where the middle vertex has the lowest degree. It is easily implemented and is empirically known to give remarkable speedups over the trivial…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComplex Network Analysis Techniques · Advanced Graph Theory Research · Advanced Graph Neural Networks
