TL;DR
This paper introduces a novel distributed algorithm for approximating the diameter of massive, weighted graphs. It achieves a polylogarithmic approximation guarantee with linear space complexity and a round complexity that is asymptotically smaller than existing state-of-the-art methods for certain graph families, making it highly efficient for large-scale graph analytics.
What Problem Does This Paper Address?
Analyzing massive graphs is crucial across many domains, but computing their diameter (the longest shortest path between any two nodes) is computationally expensive, often as demanding as computing all-pairs shortest paths. This problem is exacerbated in distributed environments where graphs don't fit into a single machine's memory. Existing distributed algorithms for diameter approximation are either space-inefficient or require a number of communication rounds that scales linearly with the graph's diameter, making them impractical for very large graphs. This paper aims to bridge this gap by providing an efficient, distributed, and scalable solution.
Methods
The core of the proposed algorithm is a clustering-based decomposition strategy. The input graph is partitioned into disjoint clusters of bounded radius. An auxiliary graph is then constructed where nodes represent cluster centers. The diameter of this smaller auxiliary graph is computed, and the approximate diameter of the original graph is derived from it.
Key algorithmic components include:
- RANDCLUSTER Algorithm: This algorithm partitions the graph into clusters of bounded radius. It iteratively grows clusters around selected centers, ensuring that the radius doesn't grow excessively by using ideas from parallel SSSP algorithms like A-stepping. It provides theoretical guarantees on the number of clusters and their radius.
- MapReduce Implementation: The algorithm is designed to run on a MapReduce-like framework, adhering to sublinear local memory and linear aggregate memory constraints. The paper details how growing steps and other operations can be efficiently implemented using MapReduce primitives like sorting and prefix operations.
- Iterative Radius Guessing: To balance the trade-off between auxiliary graph size and the number of communication rounds, the algorithm iteratively runs RANDCLUSTER with geometrically increasing radius guesses until a sufficiently small auxiliary graph is obtained.
Datasets
The authors evaluated their algorithm on the following datasets:
- sk-2005: A web graph.
- twitter-2010: A social network graph.
- USA: A road network graph.
For the web and social network graphs, they used both their original unweighted versions and generated weighted versions by assigning random integer weights between 1 and n (number of nodes). The USA road network was inflated by generating its Cartesian product with a linear array of S nodes (S=5, 10) to create larger instances that would not fit into a single machine's memory. Only the largest connected components of these datasets were used.
Key Insights and Ideas
- Decomposition for Scalability: The fundamental idea of decomposing a large graph into smaller, manageable clusters is key to achieving scalability in a distributed setting.
- Auxiliary Graph for Diameter: Constructing a smaller auxiliary graph based on cluster centers allows for efficient diameter computation, leveraging the fact that the diameter of the original graph can be approximated from the diameter of this reduced representation.
- Doubling Dimension as a Performance Metric: The paper highlights that for graphs with bounded doubling dimension (a measure of how "fractal" a graph's metric space is), their algorithm achieves a round complexity that is significantly better than linear in the diameter, outperforming competitors like A-stepping.
- Practical Approximation vs. Theoretical Bounds: Experimental results show that the algorithm's practical approximation ratio is much better than the theoretical polylogarithmic bounds suggest, often closely matching the 2-approximation of A-stepping.
Key Results
- Theoretical Guarantees: The algorithm provides an O(log n) approximation ratio with high probability. For graphs with bounded doubling dimension D, the round complexity is O(Ψ(G) * (log n)^(3+2/D) * n^(-ε/(2D))) for unweighted graphs and O(l4r * log² n) for weighted graphs, where Ψ(G) is the unweighted diameter and r is related to the graph's diameter.
- Efficiency: The MapReduce implementation uses O(nε) local memory and O(m) aggregate memory.
- Experimental Speedup: On large graphs that do not fit into a single machine's memory (e.g., USA-x10), CLUSTERDIAMETER was significantly faster than the A-stepping based DELTASTEPPING algorithm, with DELTASTEPPING timing out or being unable to load the graph. On smaller graphs, performance was comparable or CLUSTERDIAMETER was slightly faster.
- Scalability: The algorithm demonstrates good strong scaling properties, meaning its performance improves as more machines are added.
- Approximation Quality: In practice, the algorithm yields diameter approximations very close to the optimal, often comparable to the 2-approximation of DELTASTEPPING, despite theoretical bounds being looser.
Limitations and Future Work
- Theoretical Approximation Ratio: The paper acknowledges that the theoretical O(log n) approximation ratio for the diameter might be a loose worst-case bound and conjectures that tighter analyses for specific graph classes could be beneficial.
- Open Problem: Performing a tighter analysis of the strategy, especially for specific graph classes, is suggested as an interesting open problem.
- Unweighted Graphs: While the algorithm works for unweighted graphs, a simple BFS implementation can outperform it due to smaller constant factors on graphs with small diameters. However, for unweighted graphs with large diameters, the proposed approach is still competitive.
Summary updated