[Paper Review] Work-Efficient Parallel and Incremental Graph Connectivity
This paper presents the first work-efficient shared-memory parallel algorithm for incremental graph connectivity with polylogarithmic parallel depth, enabling high-throughput processing of streaming edges. It achieves hundreds of millions of edges per second on a 20-core machine, significantly outperforming sequential methods while maintaining theoretical optimality in work complexity.
On an evolving graph that is continuously updated by a high-velocity stream of edges, how can one efficiently maintain if two vertices are connected? This is the connectivity problem, a fundamental and widely studied problem on graphs. We present the first shared-memory parallel algorithm for incremental graph connectivity that is both provably work-efficient and has polylogarithmic parallel depth. We also present a simpler algorithm with slightly worse theoretical properties, but which is easier to implement and has good practical performance. Our experiments show a throughput of hundreds of millions of edges per second on a $20$-core machine.
Motivation & Objective
- Address the need for high-throughput, real-time graph analytics in dynamic, high-velocity data streams.
- Design a parallel algorithm for incremental graph connectivity that is both work-efficient and has low parallel depth.
- Enable efficient bulk processing of edge updates and connectivity queries in shared-memory systems.
- Achieve practical scalability and high throughput on modern multi-core architectures.
- Bridge the gap between theoretical parallel algorithms and practical deployment in stream processing frameworks.
Proposed method
- Propose a simple parallel incremental connectivity algorithm that processes minibatches of edges in a single pass using O(n) memory and O(b log n) work for b edges.
- Introduce a work-optimized algorithm with total work O((m + q)α(m + q, n)), matching the best sequential union-find performance.
- Use a parallel union-find variant with path compression and efficient batch processing to minimize redundant work.
- Design a bulk-update and bulk-query interface where each operation is processed in parallel across multiple cores.
- Leverage shared-memory parallelism to process large minibatches of edges and queries simultaneously, minimizing synchronization overhead.
- Implement and evaluate a practical variant of the simple algorithm on a 20-core system with hyperthreading.
Experimental results
Research questions
- RQ1Can a shared-memory parallel algorithm for incremental graph connectivity achieve both work-efficiency and polylogarithmic parallel depth?
- RQ2How can bulk-parallel processing of edge updates and queries be designed to scale efficiently on modern multi-core systems?
- RQ3What is the practical performance of a work-efficient parallel incremental connectivity algorithm in real-world streaming workloads?
- RQ4Can the algorithm maintain theoretical optimality while achieving high throughput in practice?
- RQ5Is it possible to design a hybrid algorithm that adapts between linear work for large batches and union-find-style performance for small batches?
Key findings
- The proposed algorithm achieves a throughput of 300 million edges per second on a 20-core machine with 40 hyper-threads.
- The algorithm realizes a speedup of 8–11× over single-threaded performance on 20 cores, with consistent scalability across different datasets.
- Speedup increases with larger batch sizes due to reduced synchronization overhead and better load balancing.
- On datasets with many connected components (e.g., rMat16), throughput begins to drop beyond 20 threads due to insufficient work per batch.
- The implementation outperforms union-find without path compression by 1.01–2.5× and is within acceptable overhead compared to union-find with path compression.
- The algorithm maintains theoretical work-optimality, matching the best sequential algorithms, while achieving near-linear speedup in practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.