English

Faster motif counting via succinct color coding and adaptive sampling

Data Structures and Algorithms 2021-07-20 v2 Databases

Abstract

We address the problem of computing the distribution of induced connected subgraphs, aka \emph{graphlets} or \emph{motifs}, in large graphs. The current state-of-the-art algorithms estimate the motif counts via uniform sampling, by leveraging the color coding technique by Alon, Yuster and Zwick. In this work we extend the applicability of this approach, by introducing a set of algorithmic optimizations and techniques that reduce the running time and space usage of color coding and improve the accuracy of the counts. To this end, we first show how to optimize color coding to efficiently build a compact table of a representative subsample of all graphlets in the input graph. For 88-node motifs, we can build such a table in one hour for a graph with 6565M nodes and 1.81.8B edges, which is 20002000 times larger than the state of the art. We then introduce a novel adaptive sampling scheme that breaks the "additive error barrier" of uniform sampling, guaranteeing multiplicative approximations instead of just additive ones. This allows us to count not only the most frequent motifs, but also extremely rare ones. For instance, on one graph we accurately count nearly 10.00010.000 distinct 88-node motifs whose relative frequency is so small that uniform sampling would literally take centuries to find them. Our results show that color coding is still the most promising approach to scalable motif counting.

Keywords

Cite

@article{arxiv.2009.03052,
  title  = {Faster motif counting via succinct color coding and adaptive sampling},
  author = {Marco Bressan and Stefano Leucci and Alessandro Panconesi},
  journal= {arXiv preprint arXiv:2009.03052},
  year   = {2021}
}
R2 v1 2026-06-23T18:21:32.964Z