Lune

KDD2021Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Scalable Temporal Motif Densest Subnetwork Discovery cites Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite Graphs
  • Evolution Forest Index: Towards Optimal Temporal k-Core Component Search via Time-Topology Isomorphic Computation cites Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite Graphs
  • Efficient Historical Butterfly Counting in Large Temporal Bipartite Networks via Graph Structure-aware Index cites Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite Graphs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite GraphsXin-Wei Cai, Xiangyu Ke, Kai Wang, Lu Chen et al.VLDB 2024 · 27 citations
  2. Everest: GPU-Accelerated System For Mining Temporal MotifsYichao Yuan, Haojie Ye, Sanketh Vedula, Wynn Kaza et al.VLDB 2024 · 14 citations
  3. Evolution Forest Index: Towards Optimal Temporal kk-Core Component Search via Time-Topology Isomorphic ComputationJunyong Yang, Ming Zhong, Yuanyuan Zhu, Tieyun Qian et al.VLDB 2024 · 7 citations
  4. Scalable Temporal Motif Densest Subnetwork DiscoveryIlie Sarpe, Fabio Vandin, Aristides GionisKDD 2024 · 5 citations
  5. 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

  1. Efficiently Counting Triangles in Large Temporal GraphsYuyang Xia, Yixiang Fang, Wensheng LuoSIGMOD 2025 · 3 citations
  2. TIMEST: Temporal Information Motif Estimator Using Sampling TreesYunjie Pan, Omkar Bhalerao, C. Seshadhri, Nishil TalatiVLDB 2026
  3. LOTUS: locality optimizing triangle countingMohsen Koohi Esfahani, Peter Kilpatrick, Hans VandierendonckPPoPP 2022 · 6 citations
  4. Scalable Motif Counting for Large-scale Temporal GraphsZhongqiang Gao, Chuanqi Cheng, Yanwei Yu, Lei Cao et al.ICDE 2022 · 23 citations
  5. Efficient Bi-triangle Counting for Large Bipartite NetworksYixing Yang, Yixiang Fang, Maria E. Orlowska, Wenjie Zhang et al.VLDB 2021 · 39 citations
Dusk over the sea between two cliffs drawn in fine vertical lines