An Efficient Streaming Algorithm for Approximating Graphlet Distributions
In recent years, the problem of computing the frequencies of the induced k -vertex subgraphs of a graph, or k-graphlets, has become central. One approach for this problem is to sample k -graphlets randomly. Classic algorithms for k -graphlet sampling require loading the entire graph into main memory, making them impractical for massive graphs. To bypass this limitation, Bourreau et al. (NeurIPS 2024) introduced a streaming algorithm that through nontrivial techniques makes only O (log n ) passes using O ( n log n ) memory. In this work we break their O (log n )-pass bound by giving an algorithm that, for any fixed c > 0, makes O (1/ c ) passes using Õ( n 1+ c ) memory. As a consequence of their lower bound, our algorithm is optimal up to a factor of Õ (n c ) in the memory usage. We use this sampling algorithm to obtain an efficient method of approximating k -graphlet distributions. Experiments on real-world and synthetic graphs show that our algorithm is always at least as good as the one of Bourreau et al., and outperforms it by orders of magnitude on mildly dense graphs.
Authors
- Mauro Sozio (ORCID: https://orcid.org/0000-0002-2031-3974)
- T-H. Hubert Chan
- Qipeng Kuang
- Marco Bressan (ORCID: https://orcid.org/0000-0001-5211-2264)
Institutions
- University of Milan (IT)
- Libera Università Internazionale degli Studi Sociali Guido Carli (IT)
- University of Hong Kong (HK)
Publication Details
- Journal
- Proceedings of the ACM on Management of Data
- Published
- 2026-05-18
- DOI
- https://doi.org/10.1145/3802010
- Primary Topic
- Complexity and Algorithms in Graphs
- Type
- article
- Field-Weighted Citation Impact
- 0.00