Lune

KDD2026Top-tier venue

Four-Cycle Counting in Low-Degeneracy Graph Streams

Sebastian Lüderssen, Stefan Neumann, Pan Peng

Abstract

We study the problem of (1 + 𝜀)-approximating the number of fourcycles in graphs given as arbitrary order edge streams. We propose two new algorithms based on sampling induced subgraphs. Our first contribution is a two-pass algorithm that uses 𝑂 (𝜅𝑚/ √ 𝑇 ) space, where 𝑚 is the number of edges, 𝑇 is the number of four-cycles, and 𝜅 is the graph's degeneracy. This algorithm improves upon existing theoretical bounds and is provably optimal for constant-degeneracy graphs, matching the known Ω(𝑚/ √ 𝑇 ) lower bound up to lowerorder factors. Our second contribution is a one-pass algorithm that remains accurate when four-cycles are not highly concentrated around individual nodes, edges, or wedges; this structural property is common in sparse social and collaboration networks. We evaluate both algorithms on a variety of real-world graph streams. The twopass algorithm consistently outperforms state-of-the-art methods, using substantially less space to achieve a desired accuracy. The one-pass algorithm is competitive when four-cycles are evenly distributed, matching our theoretical analysis. Unlike several recent works, our algorithms perform well even on non-bipartite graphs such as social networks.

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.

1 top-tier paper has 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

  • Near-Optimal Four-Cycle Counting in Graph Streams cites Counting Butterflies in Fully Dynamic Bipartite Graph Streams
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Near-Optimal Four-Cycle Counting in Graph StreamsSebastian Lüderssen, Stefan Neumann, Pan PengSODA 2026 · 1 citation

Builds on2

  1. Counting Butterflies in Fully Dynamic Bipartite Graph StreamsSerafeim Papadias, Zoi Kaoudi, Varun Pandey, Jorge-Arnulfo Quiané-Ruiz et al.ICDE 2024 · 4 citations
  2. Near-Optimal Four-Cycle Counting in Graph StreamsSebastian Lüderssen, Stefan Neumann, Pan PengSODA 2026 · 1 citation

Related papers

  1. Triangle and Four Cycle Counting with Predictions in Graph StreamsJustin Y. Chen, Talya Eden, Piotr Indyk, Honghao Lin et al.ICLR 2022 · 29 citations
  2. Estimating Correlation Clustering Cost in Node-Arrival StreamKaiwen Liu, Seba Daniela Villalobos, Qin ZhangICML 2026
  3. An Efficient Streaming Algorithm for Approximating Graphlet DistributionsMarco Bressan, T.-H. Hubert Chan, Qipeng Kuang, Mauro SozioSIGMOD 2026
  4. Sliding Window-based Approximate Triangle Counting over Streaming Graphs with Duplicate EdgesXiangyang Gou, Lei ZouSIGMOD 2021 · 26 citations
  5. Faster Streaming and Scalable Algorithms for Finding Directed Dense Subgraphs in Large GraphsSlobodan Mitrovic, Theodore PanICML 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines