Approximate Butterfly Counting in Sublinear Time
Chi Luo, Jiaxin Song, Yuhao Zhang, Kai Wang, Zhixing He, Kuan Yang
Abstract
Bipartite graphs serve as a natural model for representing relationships between two different types of entities. When analyzing bipartite graphs, butterfly counting is a fundamental research problem that aims to count the number of butterflies (i.e., 2x2 bicliques) in a given bipartite graph. While this problem has been extensively studied in the literature, existing algorithms usually necessitate access to a large portion of the entire graph, presenting challenges in real scenarios where graphs are extremely large and I/O costs are expensive. In this paper, we study the butterfly counting problem under the query model, where the following query operations are permitted: degree query, neighbor query, and vertex-pair query. We propose TLS, a practical two-level sampling algorithm that can estimate the butterfly count accurately while accessing only a limited graph structure, achieving significantly lower query costs under the standard query model. TLS also incorporates several key techniques to control the variance, including "small-degree-first sampling" and "wedge sampling via small subsets". To ensure theoretical guarantees, we further introduce two novel techniques: "heavy-light partition" and "guess-and-prove", integrated into TLS. With these techniques, we prove that the algorithm can achieve a (1+eps) accuracy for any given approximation parameter 0 < eps < 1 on general bipartite graphs with a promised time and query complexity. In particular, the promised time is sublinear when the input graph is dense enough. Extensive experiments on 15 datasets demonstrate that TLS delivers robust estimates with up to three orders of magnitude lower query costs and runtime compared to existing solutions.
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 39c672f9-4a7c-48a5-a1de-b140e21ad804Builds on5
- Maximum Biclique Search at Billion ScaleBingqing Lyu, Lu Qin, Xuemin Lin, Ying Zhang et al.VLDB 2020 · 103 citations
- Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite GraphsXin-Wei Cai, Xiangyu Ke, Kai Wang, Lu Chen et al.VLDB 2024 · 27 citations
- Butterfly Counting on Uncertain Bipartite NetworksAlexander Zhou, Yue Wang, Lei ChenVLDB 2022 · 25 citations
- Efficient Load-Balanced Butterfly Counting on GPUQingyu Xu, Feng Zhang, Zhiming Yao, Lv Lu et al.VLDB 2022 · 21 citations
- Scalable Approximate Butterfly and Bi-triangle Counting for Large Bipartite NetworksFangyuan Zhang, Dechuang Chen, Sibo Wang, Yin Yang et al.SIGMOD 2024 · 8 citations
Related papers
- Estimating Biclique Counts with Accuracy GuaranteesRashmika Gamage, Lijun ChangSIGMOD 2026 · 1 citation
- Efficient Historical Butterfly Counting in Large Temporal Bipartite Networks via Graph Structure-aware IndexQiuyang Mang, Jingbang Chen, Hangrui Zhou, Yu Gao et al.VLDB 2025 · 1 citation
- Scalable Approximate Biclique Counting over Large Bipartite GraphsJingbang Chen, Weinuo Li, Yingli Zhou, Hangrui Zhou et al.VLDB 2026
- Counting Butterflies in Fully Dynamic Bipartite Graph StreamsSerafeim Papadias, Zoi Kaoudi, Varun Pandey, Jorge-Arnulfo Quiané-Ruiz et al.ICDE 2024 · 4 citations
- (p, q)-biclique Counting and Enumeration for Large Sparse Bipartite GraphsJianye Yang, Yun Peng, Wenjie ZhangVLDB 2022 · 56 citations
