BiLight: A Fast Method for Estimating Counts of 6-Vertex Bipartite Motifs in Large Graphs
Abstract
Motifs, or small subgraphs, are fundamental building blocks of complex networks. Analyzing their frequency distribution provides deep insights into the local structure of graphs, with applications in social network analysis, bioinformatics, and web mining. However, exact enumeration of motifs becomes computationally expensive as the size of the motif and the network increases. This challenge is particularly acute for bipartite motifs, which are ubiquitous in modeling relationships like user-item, author-paper, and actor-movie interactions. In this work, we present BiLight (Bipartite Lightweight motif estimation), a scalable framework for estimating the frequencies of all 17 non-isomorphic 6-vertex bipartite motifs. Specifically, we focus on estimating the non-induced counts of these motifs, which is a common requirement in many graph mining tasks. Our approach relies on a randomized path sampling of paths on four vertices. We use an efficient, weighted strategy by counting the ways that each sampled path can be extended to one of the 17 motifs. This framework yields unbiased estimates of the global motif counts. We conduct extensive experiments on networks of various sizes. Our experiments demonstrate that BiLight converges rapidly to the ground truth with high accuracy, even on massive networks where exact counting is infeasible. The source code is publicly available at https://github.com/celikmustaa/BiLight.