[Paper Review] Distributed Algorithms for Directed Betweenness Centrality and All Pairs Shortest Paths
This paper presents the first efficient distributed algorithms for computing betweenness centrality (BC) and all-pairs shortest paths (APSP) in directed graphs within the CONGEST model. It introduces O(n)-round algorithms for unweighted directed graphs and weighted DAGs, leveraging global delay pipelining to optimize message passing and round complexity, significantly improving upon prior work in both round and message counts.
The betweenness centrality (BC) of a node in a network (or graph) is a measure of its importance in the network. BC is widely used in a large number of environments such as social networks, transport networks, security/mobile networks and more. We present an O(n)-round distributed algorithm for computing BC of every vertex as well as all pairs shortest paths (APSP) in a directed unweighted network, where n is the number of vertices and m is the number of edges. We also present O(n)-round distributed algorithms for computing APSP and BC in a weighted directed acyclic graph (dag). Our algorithms are in the Congest model and our weighted dag algorithms appear to be the first nontrivial distributed algorithms for both APSP and BC. All our algorithms pay careful attention to the constant factors in the number of rounds and number of messages sent, and for unweighted graphs they improve on one or both of these measures by at least a constant factor over previous results for both directed and undirected APSP and BC.
Motivation & Objective
- To design efficient distributed algorithms for betweenness centrality (BC) and all-pairs shortest paths (APSP) in directed graphs, a domain with limited prior work.
- To minimize both the number of communication rounds and total messages sent in the CONGEST model, particularly for directed and weighted graphs.
- To develop techniques that enable efficient pipelining of shortest path computations across multiple sources in a coordinated, round-optimized manner.
- To provide the first nontrivial distributed algorithms for APSP and BC in weighted directed acyclic graphs (DAGs), a previously unaddressed challenge.
- To improve upon existing distributed BC and APSP algorithms in terms of round complexity and message complexity by at least a constant factor for unweighted graphs.
Proposed method
- Uses a global delay pipelining technique where each source initiates a single-source shortest path (SSSP) computation at a unique absolute time based on its ID and node level (distance from source).
- Employs a topological ordering in weighted DAGs to ensure that messages for shortest path distances and path counts propagate in a consistent, dependency-aware order.
- Computes shortest path distances δ(x,y) and number of shortest paths σxy at each node y by aggregating values from incoming neighbors u with δ(x,u) + w(u,y) = δ(x,y).
- Schedules the accumulation phase for BC using reverse round numbering: for each pair (x,y), the accumulation occurs at time A_xy = 2n - τ_xy, ensuring all successors have sent their contributions.
- Leverages the CONGEST model’s message size limit (O(log n) bits) to ensure scalability and congestion control while maintaining correctness.
- Integrates SSSP and BC computation into a single framework: APSP is computed first via pipelined SSSP propagation, then used as input for BC via backward accumulation.
Experimental results
Research questions
- RQ1Can efficient distributed algorithms for BC and APSP be designed for directed graphs in the CONGEST model, where prior work was limited?
- RQ2How can pipelined message propagation be coordinated across multiple sources to minimize round complexity in directed graphs?
- RQ3What is the minimal round complexity achievable for APSP and BC in weighted DAGs, and can it be achieved with bounded message counts?
- RQ4Can the techniques developed for unweighted graphs be extended to weighted DAGs with provable performance guarantees?
- RQ5To what extent can global delay pipelining reduce both round and message complexity in distributed shortest path and centrality computation?
Key findings
- The algorithm computes BC in unweighted directed graphs in 2n + O(D) rounds, where D is the directed diameter, and sends at most 2mn + 2m messages.
- For unweighted graphs, the APSP subcomponent runs in n + O(D) rounds and sends at most mn + 2m messages, improving on prior results by a constant factor in both measures.
- For weighted DAGs, the APSP algorithm runs in n + O(L) rounds and the BC algorithm in 2n + O(L) rounds, where L is the length of the longest path from any source.
- The proposed algorithms are the first nontrivial distributed solutions for both APSP and BC in weighted DAGs, filling a critical gap in distributed graph algorithms.
- An implementation on the D-Galois platform confirmed that the BC algorithm outperforms earlier high-performance distributed BC implementations.
- The use of global delay pipelining enables coordination across multiple sources without message collisions, reducing both round and message complexity.
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.