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 about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 553e8a53-7007-4d7d-9037-782c00c70944Cited by top-tier papers2
- TVA: A Version-aware Temporal Graph Storage System for Real-time AnalyticsWenhao Li, Zhanhao Zhao, Jinhao Dong, Jiamin Hou et al.VLDB 2026
- Efficient Temporal Subgraph Management: A New Interval IndexDian Ouyang, Yikun Wang, Dong Wen, Wenjie Zhang et al.VLDB 2026
Related papers
- Faster and Generalized Temporal Triangle Counting, via Degeneracy OrderingNoujan Pashanasangi, C. SeshadhriKDD 2021 · 17 citations
- Querying Cohesive Subgraph Regarding Span-Constrained Triangles on Temporal GraphsChuhan Hu, Ming Zhong, Yuanyuan Zhu, Tieyun Qian et al.ICDE 2024 · 5 citations
- On Querying Connected Components in Large Temporal GraphsHaoxuan Xie, Yixiang Fang, Yuyang Xia, Wensheng Luo et al.SIGMOD 2023 · 20 citations
- Efficient Bi-triangle Counting for Large Bipartite NetworksYixing Yang, Yixiang Fang, Maria E. Orlowska, Wenjie Zhang et al.VLDB 2021 · 39 citations
- Effective Durable Community Search in Large Temporal GraphYingli Zhou, Yige Jiang, Yixiang Fang, Wensheng Luo et al.VLDB 2026
