Lune

SIGMOD2025Top-tier venue

Efficiently Counting Triangles in Large Temporal Graphs

Yuyang Xia, Yixiang Fang, Wensheng Luo

Abstract

In many real-world applications (e.g., email networks, social networks, and phone call networks), the relationships between entities can be modeled as a temporal graph, in which each edge is associated with a timestamp representing the interaction time. As a fundamental task in temporal graph analysis, triangle counting has received much attention, and several triangle models have been developed, including δ-temporal triangle, sliding-window triangle, and (δ 1,3 , δ 1,2 , δ 2,3 )-temporal triangle. In particular, the δ-temporal triangle, requiring the gap of timestamps of any two edges within it to be bounded by a threshold δ, has been demonstrated effective in many real applications, such as cohesiveness analysis, transitivity, clustering coefficient, and graph classification. In this paper, we study fast algorithms for counting δ-temporal triangles in a given query time window. We first propose an online algorithm, which enumerates all edges in the graph and for each edge, calculates how many δ-temporal triangles end with the edge. We further develop an efficient index-based solution, which maps δ-temporal triangles into points of the 2-dimensional space and further compactly organizes these points using hierarchical structures. Besides, we study the problem of binary δ-temporal triangle counting by considering the existence of δ-temporal triangle among three vertices. Experiments on large temporal graphs show that our online algorithm is up to 70× faster than the state-of-the-art algorithm, and our index-based algorithm is up to 10 8 × faster than the online algorithm.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

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

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. TVA: A Version-aware Temporal Graph Storage System for Real-time AnalyticsWenhao Li, Zhanhao Zhao, Jinhao Dong, Jiamin Hou et al.VLDB 2026
  2. Efficient Temporal Subgraph Management: A New Interval IndexDian Ouyang, Yikun Wang, Dong Wen, Wenjie Zhang et al.VLDB 2026

Related papers

  1. Faster and Generalized Temporal Triangle Counting, via Degeneracy OrderingNoujan Pashanasangi, C. SeshadhriKDD 2021 · 17 citations
  2. Querying Cohesive Subgraph Regarding Span-Constrained Triangles on Temporal GraphsChuhan Hu, Ming Zhong, Yuanyuan Zhu, Tieyun Qian et al.ICDE 2024 · 5 citations
  3. On Querying Connected Components in Large Temporal GraphsHaoxuan Xie, Yixiang Fang, Yuyang Xia, Wensheng Luo et al.SIGMOD 2023 · 20 citations
  4. Efficient Bi-triangle Counting for Large Bipartite NetworksYixing Yang, Yixiang Fang, Maria E. Orlowska, Wenjie Zhang et al.VLDB 2021 · 39 citations
  5. Effective Durable Community Search in Large Temporal GraphYingli Zhou, Yige Jiang, Yixiang Fang, Wensheng Luo et al.VLDB 2026
Dusk over the sea between two cliffs drawn in fine vertical lines