Skip to main content
QUICK REVIEW

[Paper Review] Graph connectivity in log steps using label propagation

Burkhardt, Paul|arXiv (Cornell University)|Aug 20, 2018
Digital Image Processing TechniquesComputer Science9 citations
TL;DR

This paper proposes a simple, deterministic label propagation algorithm for undirected graph connectivity that achieves logarithmic convergence in O(log n) steps across PRAM, Stream, and MapReduce models, using alternating directed edge propagation and minimum label reduction. The method maintains linear work per step without increasing edge count, and while convergence is empirically observed as O(log n) on diverse graphs, a formal proof remains an open problem.

ABSTRACT

The fastest deterministic algorithms for connected components take logarithmic time and perform superlinear work on a Parallel Random Access Machine (PRAM). These algorithms maintain a spanning forest by merging and compressing trees, which requires pointer-chasing operations that increase memory access latency and are limited to shared-memory systems. Many of these PRAM algorithms are also very complicated to implement. Another popular method is "leader-contraction" where the challenge is to select a constant fraction of leaders that are adjacent to a constant fraction of non-leaders with high probability. Instead we investigate label propagation because it is deterministic and does not rely on pointer-chasing. Label propagation exchanges representative labels within a component using simple graph traversal, but it is inherently difficult to complete in a sublinear number of steps. We are able to solve the problems with label propagation for graph connectivity. We introduce a surprisingly simple framework for deterministic graph connectivity using label propagation that is easily adaptable to many computational models. It propagates directed edges and alternates edge direction to achieve linear edge count each step and sublinear convergence. We present new algorithms in PRAM, Stream, and MapReduce for a simple, undirected graph $G=(V,E)$ with $n=|V|$ vertices, $m=|E|$ edges. Our approach takes $O(m)$ work each step, but we can only prove logarithmic convergence on a path graph. It was conjectured by Liu and Tarjan (2019) to take $O(\log n)$ steps or possibly $O(\log^2 n)$ steps. We leave the proof of convergence as an open problem.

Motivation & Objective

  • To develop a deterministic, easily implementable graph connectivity algorithm that avoids pointer-chasing and complex edge management.
  • To achieve logarithmic convergence time independently of the number of processors across multiple computational models.
  • To maintain O(m) work per step without increasing the number of edges in the graph.
  • To provide a framework adaptable to PRAM, Stream, and MapReduce models with minimal implementation complexity.
  • To empirically validate fast convergence on challenging graph families, including path graphs, grid-based graphs, and real-world networks.

Proposed method

  • Label propagation is performed on directed edges in alternating directions to enable bidirectional minimum label exchange.
  • For each edge (v, u), if u’s current minimum label l(u) is not v’s label, the algorithm propagates l(v) to u; otherwise, symmetrization is applied.
  • A minimum reduction is performed on vertex labels at each step, ensuring labels propagate toward the smallest vertex ID in each component.
  • The edge list is updated in parallel using atomic compare-and-swap operations to ensure correctness without synchronization.
  • A counter tracks label changes; the algorithm terminates when no further label updates occur, indicating convergence to a star graph with component roots as minimum labels.
  • The method maintains a stable edge count by replacing each edge with a new one in each step, preserving O(m) work per iteration.

Experimental results

Research questions

  • RQ1Can label propagation achieve sublinear convergence for graph connectivity without increasing edge count?
  • RQ2Is it possible to design a deterministic, simple, and scalable algorithm for connected components that avoids pointer-chasing and complex synchronization?
  • RQ3Does the alternating propagation and minimum reduction strategy lead to O(log n) convergence on general graphs?
  • RQ4How does the algorithm perform on difficult graph families such as high-diameter paths and grid-based graphs with bridge nodes?
  • RQ5Can the algorithm be efficiently adapted to multiple computational models including PRAM, Stream, and MapReduce?

Key findings

  • The algorithm converges in O(log n) steps on path graphs, matching the prediction of logφ n with φ ≈ 1.618, and takes one extra step for completion testing.
  • On large path graphs (e.g., seqpath26 with 67 million vertices), convergence occurs in 40 steps, closely aligning with theoretical predictions.
  • For grid-based graphs with bridge nodes (e.g., grid-0to16777216by24), convergence is linear in diameter D, with 26 steps for D=48.
  • On real-world networks like com-Friendster and com-Orkut, convergence occurs in 9 and 6 steps respectively, despite large size and low diameter.
  • The algorithm achieves O(log n) convergence on all tested real-world graphs, demonstrating practical scalability and independence from processor count.
  • Runtime performance is promising despite not yet matching state-of-the-art, with potential for significant improvement due to simplicity and fast convergence.

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.