Parallel Algorithms for Small Subgraph Counting

Subgraph counting is a fundamental problem in analyzing massive graphs, often studied in the context of social and complex networks. There is a rich literature on designing efficient, accurate, and scalable algorithms for this problem. In this work, we tackle this challenge and design several new algorithms for subgraph counting in the Massively Parallel Computation (MPC) model: Given a graph over vertices, edges and triangles, our first main result is an algorithm that, with high probability, outputs a -approximation to , with optimal round and space complexity provided any space per machine, assuming . Our second main result is an -rounds algorithm for exactly counting the number of triangles, parametrized by the arboricity of the input graph. The space per machine is for any constant , and the total space is , which matches the time complexity of (combinatorial) triangle counting in the sequential model. We also prove that this result can be extended to exactly counting -cliques for any constant , with the same round complexity and total space . Alternatively, allowing space per machine, the total space requirement reduces to . Finally, we prove that a recent result of Bera, Pashanasangi and Seshadhri (ITCS 2020) for exactly counting all subgraphs of size at most , can be implemented in the MPC model in rounds, space per machine and total space. Therefore, this result also exhibits the phenomenon that a time bound in the sequential model translates to a space bound in the MPC model.
View on arXiv