Efficient Approximate Temporal Triangle Counting in Streaming with Predictions

Giorgio Venturin, Ilie Sarpe, Fabio Vandin
6/16/2025
cs.DScs.LGcs.SI

No confident code implementation found for this paper.

Abstract

Triangle counting is a fundamental and widely studied problem on static graphs, and recently on temporal graphs, where edges carry information on the timings of the associated events. Streaming processing and resource efficiency are crucial requirements for counting triangles in modern massive temporal graphs, with millions of nodes and up to billions of temporal edges.

Show full abstract

However, current exact and approximate algorithms are unable to handle large-scale temporal graphs. To fill such a gap, we introduce STEP, a scalable and efficient algorithm to approximate temporal triangle counts from a stream of temporal edges. STEP combines predictions to the number of triangles a temporal edge is involved in, with a simple sampling strategy, leading to scalability, efficiency, and accurate approximation of all eight temporal triangle types simultaneously. We analytically prove that, by using a sublinear amount of memory, STEP obtains unbiased and very accurate estimates. In fact, even noisy predictions can significantly reduce the variance of STEP's estimates. Our extensive experiments on massive temporal graphs with up to billions of edges demonstrate that STEP outputs high-quality estimates and is more efficient than state-of-the-art methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{venturin2025efficient,
  title  = {Efficient Approximate Temporal Triangle Counting in Streaming with Predictions},
  author = {Giorgio Venturin and Ilie Sarpe and Fabio Vandin},
  year   = {2025},
  eprint = {2506.13173},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.13173v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.13173.svg)](https://codeofpaper.com/paper/2506.13173)

Discussion