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.
- Authors ordered alphabetically. 1 We write 𝑂 (•) to hide poly(log 𝑚, 1/𝜀 ) factors.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5eb2636f-b01a-497d-9aa9-3835cc758a11Cited by top-tier papers1
Ask how each one uses itBuilds on2
Related papers
- Triangle and Four Cycle Counting with Predictions in Graph StreamsJustin Y. Chen, Talya Eden, Piotr Indyk, Honghao Lin et al.ICLR 2022 · 29 citations
- An Efficient Streaming Algorithm for Approximating Graphlet DistributionsMarco Bressan, T.-H. Hubert Chan, Qipeng Kuang, Mauro SozioSIGMOD 2026
- Faster Streaming and Scalable Algorithms for Finding Directed Dense Subgraphs in Large GraphsSlobodan Mitrovic, Theodore PanICML 2024 · 1 citation
- Estimating Correlation Clustering Cost in Node-Arrival StreamKaiwen Liu, Seba Daniela Villalobos, Qin ZhangICML 2026
- Towards Multi-Pass Streaming Lower Bounds for Optimal Approximation of Max-CutLijie Chen, Gillat Kol, Dmitry Paramonov, Raghuvansh R. Saxena et al.SODA 2023 · 3 citations
