Faster and Generalized Temporal Triangle Counting, via Degeneracy Ordering
Noujan Pashanasangi, C. Seshadhri
Abstract
Triangle counting is a fundamental technique in network analysis, that has received much attention in various input models. The vast majority of triangle counting algorithms are targeted to static graphs. Yet, many real-world graphs are directed and temporal, where edges come with timestamps. Temporal triangles yield much more information, since they account for both the graph topology and the timestamps.
Temporal triangle counting has seen a few recent results, but there are varying definitions of temporal triangles. In all cases, temporal triangle patterns enforce constraints on the time interval between edges (in the triangle). We define a general notion (𝛿 1,3 , 𝛿 1,2 , 𝛿 2,3 )-temporal triangles that allows for separate time constraints for all pairs of edges.
Our main result is a new algorithm, DOTTT (Degeneracy Oriented Temporal Triangle Totaler), that exactly counts all directed variants of (𝛿 1,3 , 𝛿 1,2 , 𝛿 2,3 )-temporal triangles. Using the classic idea of degeneracy ordering with careful combinatorial arguments, we can prove that DOTTT runs in 𝑂 (𝑚𝜅 log 𝑚) time, where 𝑚 is the number of (temporal) edges and 𝜅 is the graph degeneracy (max core number). Up to log factors, this matches the running time of the best static triangle counters. Moreover, this running time is better than existing.
DOTTT has excellent practical behavior and runs twice as fast as existing state-of-the-art temporal triangle counters (and is also more general). For example, DOTTT computes all types of temporal queries in Bitcoin temporal network with half a billion edges in less than an hour on a commodity machine.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7d2b10f9-3e0a-4fa3-82e2-921c9e285977Cited by top-tier papers7
- Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite GraphsXin-Wei Cai, Xiangyu Ke, Kai Wang, Lu Chen et al.VLDB 2024 · 27 citations
- Everest: GPU-Accelerated System For Mining Temporal MotifsYichao Yuan, Haojie Ye, Sanketh Vedula, Wynn Kaza et al.VLDB 2024 · 14 citations
- Evolution Forest Index: Towards Optimal Temporal -Core Component Search via Time-Topology Isomorphic ComputationJunyong Yang, Ming Zhong, Yuanyuan Zhu, Tieyun Qian et al.VLDB 2024 · 7 citations
- Scalable Temporal Motif Densest Subnetwork DiscoveryIlie Sarpe, Fabio Vandin, Aristides GionisKDD 2024 · 5 citations
- Efficient Historical Butterfly Counting in Large Temporal Bipartite Networks via Graph Structure-aware IndexQiuyang Mang, Jingbang Chen, Hangrui Zhou, Yu Gao et al.VLDB 2025 · 1 citation
Related papers
- Efficiently Counting Triangles in Large Temporal GraphsYuyang Xia, Yixiang Fang, Wensheng LuoSIGMOD 2025 · 3 citations
- TIMEST: Temporal Information Motif Estimator Using Sampling TreesYunjie Pan, Omkar Bhalerao, C. Seshadhri, Nishil TalatiVLDB 2026
- LOTUS: locality optimizing triangle countingMohsen Koohi Esfahani, Peter Kilpatrick, Hans VandierendonckPPoPP 2022 · 6 citations
- Scalable Motif Counting for Large-scale Temporal GraphsZhongqiang Gao, Chuanqi Cheng, Yanwei Yu, Lei Cao et al.ICDE 2022 · 23 citations
- Efficient Bi-triangle Counting for Large Bipartite NetworksYixing Yang, Yixiang Fang, Maria E. Orlowska, Wenjie Zhang et al.VLDB 2021 · 39 citations
