Skip to main content
QUICK REVIEW

[Paper Review] Connected Components at Scale via Local Contractions

Jakub Łącki, Vahab Mirrokni|arXiv (Cornell University)|Jul 27, 2018
Graph Theory and AlgorithmsComputer Science28 references12 citations
TL;DR

This paper introduces LocalContraction, a scalable distributed algorithm for computing connected components in large-scale graphs using local edge contractions. It achieves theoretical O(log log n) round complexity with high probability on random graphs—significantly faster than the standard O(log n) bound—while maintaining practical efficiency, outperforming state-of-the-art MapReduce algorithms on graphs with trillions of edges.

ABSTRACT

As a fundamental tool in hierarchical graph clustering, computing connected components has been a central problem in large-scale data mining. While many known algorithms have been developed for this problem, they are either not scalable in practice or lack strong theoretical guarantees on the parallel running time, that is, the number of communication rounds. So far, the best proven guarantee is $\Oh(\log n)$, which matches the running time in the PRAM model. In this paper, we aim to design a distributed algorithm for this problem that works well in theory and practice. In particular, we present a simple algorithm based on contractions and provide a scalable implementation of it in MapReduce. On the theoretical side, in addition to showing $\Oh(\log n)$ convergence for all graphs, we prove an $\Oh(\log \log n)$ parallel running time with high probability for a certain class of random graphs. We work in the MPC model that captures popular parallel computing frameworks, such as MapReduce, Hadoop or Spark. On the practical side, we show that our algorithm outperforms the state-of-the-art MapReduce algorithms. To confirm its scalability, we report empirical results on graphs with several trillions of edges.

Motivation & Objective

  • To design a distributed algorithm for connected components that combines strong theoretical guarantees with practical scalability in the MPC model.
  • To explain the empirical success of existing algorithms, which often run in just a few rounds despite theoretical O(log n) bounds.
  • To achieve sublogarithmic round complexity for random graphs while maintaining low communication and load-balancing.
  • To implement and evaluate the algorithm on graphs with trillions of edges, demonstrating real-world scalability.

Proposed method

  • The algorithm uses local edge contractions to iteratively reduce graph size, contracting edges based on vertex priorities to form super-nodes.
  • Each phase contracts edges between vertices with the same priority, reducing the number of vertices and edges while preserving connected components.
  • A key optimization sends small contracted graphs to a single machine for final processing using union-find, reducing communication overhead.
  • The algorithm leverages the MPC model to abstract MapReduce-like frameworks, ensuring low communication complexity and good load balancing.
  • Theoretical analysis proves O(log n) convergence for all graphs and O(log log n) with high probability for random graphs under certain conditions.
  • Empirical evaluation compares LocalContraction against Cracker, Two-Phase, Hash-To-Min, and TreeContraction on large-scale datasets.

Experimental results

Research questions

  • RQ1Can a simple contraction-based algorithm achieve sublogarithmic round complexity on random graphs while maintaining practical efficiency?
  • RQ2Why do practical algorithms like Hash-To-Min perform much better in practice than their theoretical O(log n) bounds suggest?
  • RQ3Is it possible to design a distributed algorithm with both strong theoretical guarantees and superior empirical performance on large-scale graphs?
  • RQ4What is the actual communication complexity in practice, and does it remain O(m) despite a theoretical O(m log n) upper bound?

Key findings

  • LocalContraction achieves O(log log n) round complexity with high probability on random graphs, significantly improving upon the standard O(log n) bound.
  • The algorithm outperforms the state-of-the-art MapReduce algorithm by up to 20x on large graphs like Friendster and webpages.
  • On graphs with up to 854 billion vertices and 6.5 trillion edges, LocalContraction successfully completed computation, setting a new scale record for connected components.
  • In each phase, the number of edges decreased by a factor of at least 10, indicating rapid convergence and low communication overhead in practice.
  • Despite a theoretical communication complexity of O(m log n), empirical results show communication remains close to O(m) on real-world graphs.
  • The algorithm uses only 2–5 phases across all tested datasets, with Friendster and Orkut requiring just 2 phases, demonstrating strong scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.