Massively Parallel Algorithms for Small Subgraph Counting

Amartya Shankha Biswas, Talya Eden, Quanquan C. Liu, Slobodan Mitrović, Ronitt Rubinfeld
2/19/2020
cs.DScs.DC

Official code: qqliu/mpc-triangle-count-exact-approx-simulations (0 stars, Python, last commit 2020-07-07).

Abstract

Over the last two decades, frameworks for distributed-memory parallel computation, such as MapReduce, Hadoop, Spark and Dryad, have gained significant popularity with the growing prevalence of large network datasets. The Massively Parallel Computation (MPC) model is the de-facto standard for studying graph algorithms in these frameworks theoretically.

Show full abstract

Subgraph counting is one such fundamental problem in analyzing massive graphs, with the main algorithmic challenges centering on designing methods which are both scalable and accurate. Given a graph $G=(V, E)$ with $n$ vertices, $m$ edges and $T$ triangles, our first result is an algorithm that outputs a $(1+\varepsilon)$-approximation to $T$, with asymptotically \emph{optimal round and total space complexity} provided any $S \geq \max{(\sqrt m, n^2/m)}$ space per machine and assuming $T=Ω(\sqrt{m/n})$. Our result gives a quadratic improvement on the bound on $T$ over previous works. We also provide a simple extension of our result to counting \emph{any} subgraph of $k$ size for constant $k \geq 1$. Our second result is an $O_{\varepsilon}(\log \log n)$-round algorithm for exactly counting the number of triangles, whose total space usage is parametrized by the \emph{arboricity} $α$ of the input graph. We extend this result to exactly counting $k$-cliques for any constant $k$. Finally, we prove that a recent result of Bera, Pashanasangi and Seshadhri (ITCS 2020) for exactly counting all subgraphs of size at most $5$ can be implemented in the MPC model in total space.

View on arXivView PDF

Code Implementations(1)

These are simulations of the algorithms found in Sections 4 and 5 of https://arxiv.org/abs/2002.08299. We simulate running these algorithms in the MPC model and test our algorithms using graphs from the Stanford Large Network Dataset Collection (https://snap.stanford.edu/data/).

00PythonJul 7, 20206 years ago

Similar Papers

Cite this paper

@article{biswas2020massively,
  title  = {Massively Parallel Algorithms for Small Subgraph Counting},
  author = {Amartya Shankha Biswas and Talya Eden and Quanquan C. Liu and Slobodan Mitrović and Ronitt Rubinfeld},
  year   = {2020},
  eprint = {2002.08299},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.08299}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.08299.svg)](https://codeofpaper.com/paper/2002.08299)

Discussion