Parallel Graph Connectivity in Log Diameter Rounds

Alexandr Andoni, Clifford Stein, Zhao Song, Zhengyu Wang, Peilin Zhong

Abstract

Finding connected components in massive graphs is a fundamental task in distributed computing, yet for over three decades, parallel algorithms were constrained by an $O(\log n)$ round complexity barrier. This paper presents a breakthrough algorithm for the Massively Parallel Computation (MPC) model that achieves sub-logarithmic round complexity by parameterizing performance based on the graph's diameter ($D$). By employing a novel "truncated broadcasting" scheme and double-exponential problem size reduction, the authors achieve a runtime of $O(\log D \log \log_{m/n} n)$ rounds using linear total space. This work effectively bridges the gap between theoretical parallel complexity and the practical performance of modern big-data frameworks like MapReduce and Spark.

Introduction

In the era of big data, graphs representing social networks, web links, or biological interactions often exceed the memory capacity of a single machine. To process these, researchers rely on the Massively Parallel Computation (MPC) model. In this model, data is partitioned across multiple processors, and computation proceeds in synchronous rounds of local processing followed by global communication.

A primary benchmark for efficiency in MPC is the number of communication rounds required to solve a problem. For the fundamental problem of graph connectivity—identifying all nodes belonging to the same component—the standard parallel approach has long been limited to $O(\log n)$ rounds. These classic algorithms rely on "leader election" and graph contraction: in each round, roughly half the vertices are selected as leaders, and the remaining vertices are contracted into them. Because the number of vertices only shrinks by a constant fraction, the process strictly requires logarithmic time relative to the number of nodes ($n$).

Breaking the Logarithmic Barrier

The authors of this paper challenge the $O(\log n)$ status quo by asking whether an algorithm can run faster on graphs with a small diameter ($D$), which are common in real-world datasets. They introduce a suite of techniques to bypass the traditional contraction limits.

Truncated Broadcasting

The primary bottleneck in distributed graph algorithms is the communication blowup. If every node attempted to broadcast its entire neighborhood to all its neighbors, the network would face an $O(n^3)$ communication explosion. To prevent this, the authors introduce truncated broadcasting. In this scheme, nodes collect information about their neighbors only until their known neighborhood reaches a specific target size $d$. This ensures that every node learns of a significant number of connected peers without overwhelming the system's memory or bandwidth.

Aggressive Contraction and Densification

By ensuring that every node has a guaranteed high degree (at least $d$) through truncated broadcasting, the algorithm can be much more aggressive in its contraction phase. Instead of selecting 50% of nodes as leaders, the algorithm selects leaders with a much lower probability, $\Theta((\log n)/d)$. This reduces the number of leaders to $O(n/d)$, effectively shrinking the graph by a factor of $d$ rather than a factor of 2. This "densification" strategy allows the algorithm to collapse the graph much faster than traditional methods.

Double Exponential Reduction

The algorithm operates in phases where the target degree $d$ is increased based on the available memory. Because the graph size drops so rapidly, the target degree for subsequent rounds can be increased exponentially (e.g., $d_{i+1} \approx d_i^{1.5}$). This results in a double-exponential reduction in problem size, allowing the algorithm to terminate in just $O(\log \log n)$ phases. When combined with the diameter-dependent logic, the total round complexity becomes $O(\log D \log \log_{m/n} n)$.

Theoretical Insights and Extensions

Beyond the primary connectivity result, the paper offers several significant theoretical contributions:

  1. Spanning Forests and MSF: The authors extend their techniques to compute Spanning Forests, Minimum Spanning Forests (MSF), and Bottleneck Spanning Forests within the same time and space bounds. To achieve this, they utilize Local Shortest Path Trees (LSPT) to maintain valid parent pointers during the contraction process.
  2. Space-Time Tradeoffs: The paper demonstrates that if the system is provided with slightly more than linear memory (e.g., $n^{1+\gamma}$ total space), the $\log \log n$ factor is eliminated, and the algorithm achieves a pure $O(\log D)$ round complexity.
  3. The Directed Graph Hardness: One of the most compelling insights is the proof of a conditional hardness result for directed graphs. The authors show that achieving similar sub-logarithmic bounds for directed graph reachability would imply a breakthrough in sequential Boolean Matrix Multiplication (BMM). This explains why undirected graphs are uniquely susceptible to this specific speedup while directed graphs remain fundamentally more difficult.

Conclusion and Future Directions

This research provides a rigorous mathematical framework for faster parallel connectivity, proving that we can move beyond $O(\log n)$ rounds for low-diameter graphs. While the paper is primarily theoretical and does not include empirical benchmarks, its implications for the design of future distributed graph processing systems are significant.

Future work remains in two key areas: first, determining if a deterministic version of this algorithm can match these randomized bounds; and second, investigating whether a fully scalable algorithm can achieve $O(\log D)$ time using strictly linear space without the $\log \log n$ overhead. As it stands, this work represents a major step forward in aligning parallel complexity theory with the practical realities of massive-scale graph analysis.

Summary updated

BibTeX
@inproceedings{andoni2018parallel,
  author = {Alexandr Andoni and Clifford Stein and Zhao Song and Zhengyu Wang and Peilin Zhong},
  title = {{Parallel Graph Connectivity in Log Diameter Rounds}},
  booktitle = {FOCS},
  year = {2018},
  doi = {10.1109/focs.2018.00070},
}
Figure