Introduction
Identifying connected components (CC) is a fundamental task in graph analytics, with applications ranging from social network analysis to image processing. While numerous parallel algorithms have been proposed, the field has historically been fragmented, with most research focusing on isolated approaches or specific hardware architectures. The ConnectIt framework addresses this by exploring a massive design space of hundreds of algorithmic variants, providing a unified approach to both static and incremental graph connectivity.
The ConnectIt Framework
The core innovation of ConnectIt is the decomposition of connectivity algorithms into two distinct, high-performance phases: a Sampling Phase and a Finish Phase.
- Sampling Phase: The algorithm inspects a small subset of edges to identify a massive "frequent component" ($L_{max}$). ConnectIt supports various strategies, including $k$-out sampling (where each vertex selects $k$ random edges), Breadth-First Search (BFS), and Low-Diameter Decomposition (LDD).
- Finish Phase: Once the giant component is identified, the algorithm processes only the edges not already connected to $L_{max}$. This targeted approach drastically reduces the total number of edge inspections required.
The framework implements a wide array of "min-based" algorithms, including dozens of Union-Find variants and the Liu-Tarjan suite. Notably, it includes a highly optimized, lock-free version of Rem’s algorithm (UF-Rem-CAS), which minimizes path lengths and cache misses.
Key Insights and Sampling Robustness
A critical finding of this research is the effectiveness of $k$-out sampling. The authors discovered that sampling just two random edges per vertex ($k=2$) is often sufficient to identify the vast majority of a graph's connectivity. This allows the subsequent finish phase to skip nearly all edge traversals in many real-world datasets.
Furthermore, the framework highlights the importance of sampling robustness. While BFS-based sampling performs well on social networks, it often struggles with high-diameter graphs like road networks. As shown in the evaluation across diverse datasets, $k$-out sampling emerges as a robust, "one-size-fits-all" strategy that maintains high efficiency regardless of graph topology.
Performance Benchmarks
ConnectIt was evaluated on a diverse suite of large-scale graphs, including the Hyperlink2012 web graph, which contains 128 billion edges. The results demonstrate unprecedented performance:
- World Record Speed: ConnectIt processed the Hyperlink2012 graph in just 8.2 seconds on a single multicore machine, outperforming previous distributed system results by 3.1x.
- Algorithmic Speedup: The framework achieved an average speedup of 12.4x over existing state-of-the-art static multicore algorithms.
- Streaming Throughput: For incremental graphs, ConnectIt supports up to 7.16 billion edge insertions per second, significantly outperforming specialized streaming systems like STINGER by over three orders of magnitude.
Conclusion and Future Work
ConnectIt demonstrates that a well-optimized multicore framework can surpass the performance of large-scale distributed clusters by minimizing communication overhead and maximizing memory locality. While the current framework is limited to incremental updates (insertions only), it sets a new bar for graph processing efficiency. Future work includes extending these techniques to support fully dynamic connectivity (including deletions) and porting the framework to GPU architectures to further increase throughput.
Summary updated