Efficient and Complete Triangle Counting in Hypergraph Streams
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: ( i ) an incomplete classification of hyper-vertex triangle structures, typically considering only inner or outer triangles; and ( ii ) 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 propose two complementary categories of streaming algorithms. For element-wise eviction, we develop HTCount, an algorithm that dynamically adjusts the sample size based on the available memory M , and HTCount-P, a partition-based variant that further improves memory utilization by partitioning unused memory into independent sample subsets. For batch eviction, we propose HTCount-B, which adopts a lazy maintenance strategy controlled by a decay parameter β , reducing per-update computational cost by operating with a smaller average sample set and naturally capturing temporal locality in triangle formation. 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 our algorithms achieve highly accurate triangle count estimates under strict memory constraints, with relative errors 1–2 orders of magnitude lower than existing methods; HTCount-B further attains higher throughput with appropriate β settings, and practical guidelines are provided for different datasets.
Authors
- Long Yuan (ORCID: https://orcid.org/0000-0001-8111-0401)
- Lingkai Meng (ORCID: https://orcid.org/0009-0002-7961-9131)
- Xuemin Lin (ORCID: https://orcid.org/0000-0003-2396-7225)
- Wenjie Zhang (ORCID: https://orcid.org/0000-0001-6572-2600)
- Ying Zhang (ORCID: https://orcid.org/0000-0002-2674-1638)
Institutions
- Shanghai Jiao Tong University (CN)
- Wuhan University of Technology (CN)
- UNSW Sydney (AU)
- Chinese University of Hong Kong, Shenzhen (CN)
- Zhejiang Gongshang University (CN)
Publication Details
- Journal
- ACM Transactions on Database Systems
- Published
- 2026-09-24
- DOI
- https://doi.org/10.1145/3848520
- Primary Topic
- Graph Theory and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00