Triangle Counting in Hypergraph Streams: A Complete and Practical Approach
Lingkai Meng, Long Yuan, Xuemin Lin, Wenjie Zhang, Ying Zhang
Abstract
Triangle counting in hypergraph streams-including both hyper-vertex and hyper-edge triangles-is a fundamental problem in hypergraph analytics, with broad applications. However, existing methods face two key limitations: (𝑖) an incomplete classification of hyper-vertex triangle structures, typically considering only inner or outer triangles; and (𝑖𝑖) inflexible sampling schemes that predefine the number of sampled hyperedges, which is impractical under strict memory constraints due to highly variable hyperedge sizes. To address these challenges, we first introduce a complete classification of hyper-vertex triangles, including inner, hybrid, and outer triangles. Based on this, we develop HTCount, a reservoir-based algorithm that dynamically adjusts the sample size based on the available memory 𝑀. To further improve memory utilization and reduce estimation error, we develop HTCount-P, a partition-based variant that adaptively partitions unused memory into independent sample subsets. We provide theoretical analysis of the unbiasedness and variance bounds of the proposed algorithms. Case studies demonstrate the expressiveness of our triangle structures in revealing meaningful interaction patterns. Extensive experiments on real-world hypergraphs show that both our algorithms achieve highly accurate triangle count estimates under strict memory constraints, with relative errors that are 1 to 2 orders of magnitude lower than those of existing methods and consistently high throughput. CCS Concepts: • Theory of computation → Graph algorithms analysis; Streaming models.
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 0d7e6c16-bb48-487e-a474-8f446704cb0eBuilds on13
- Clustering in graphs and hypergraphs with categorical edge labelsIlya Amburg, Nate Veldt, Austin R. BensonWWW 2020 · 118 citations
- Truss-based Community Search over Large Directed GraphsQing Liu, Minjun Zhao, Xin Huang, Jianliang Xu et al.SIGMOD 2020 · 104 citations
- VAC: Vertex-Centric Attributed Community SearchQing Liu, Yifan Zhu, Minjun Zhao, Xin Huang et al.ICDE 2020 · 80 citations
- Sliding Window-based Approximate Triangle Counting over Streaming Graphs with Duplicate EdgesXiangyang Gou, Lei ZouSIGMOD 2021 · 26 citations
- Index-based Structural Clustering on Directed GraphsLingkai Meng, Long Yuan, Zi Chen, Xuemin Lin et al.ICDE 2022 · 21 citations
Related papers
- GREAT: Generalized Reservoir Sampling based Triangle Counting Estimation over Streaming GraphsSiyue Wu, Dingming Wu, Sinhong Cheuk, Tsz Nam Chan et al.VLDB 2025
- Triparts: Scalable Streaming Graph Partitioning to Enhance Community StructureRuchi Bhoot, Tuhin Khare, Manoj Agarwal, Siddharth D. Jaiswal et al.VLDB 2025 · 1 citation
- Triangle and Four Cycle Counting with Predictions in Graph StreamsJustin Y. Chen, Talya Eden, Piotr Indyk, Honghao Lin et al.ICLR 2022 · 29 citations
- Efficient Computation of Hyper-triangles on HypergraphsHaozhe Yin, Kai Wang, Wenjie Zhang, Ying Zhang et al.VLDB 2025 · 5 citations
- How to Count Triangles, without Seeing the Whole GraphSuman K. Bera, C. SeshadhriKDD 2020 · 23 citations
