On Diameter Approximation in Directed Graphs

Amir Abboud, Mina Dalirrooyfard, Ray Li, Virginia Vassilevska Williams · DOI

Abstract

Calculating the diameter of a graph—the maximum distance between any two nodes—is a fundamental task in network analysis. While the trade-offs between approximation accuracy and running time are well-established for undirected graphs, directed graphs have historically presented a more significant challenge. This paper presents a major breakthrough by introducing the first sub-quadratic time algorithms for directed graphs that achieve approximation ratios better than 2. Furthermore, it establishes that "roundtrip diameter" is fundamentally harder to compute than standard one-way diameter through novel hardness reductions.

Introduction

In the realm of fine-grained complexity, the diameter of a graph is a cornerstone metric. For undirected graphs, where edges are bidirectional, researchers have developed an "infinite scheme" of trade-offs between approximation quality and computational efficiency. Directed graphs, however, introduce asymmetry: the distance from node $u$ to $v$ is not necessarily equal to the distance from $v$ to $u$. This leads to two distinct problems:

  1. One-way Diameter: The maximum shortest path distance $d(u, v)$ over all pairs.
  2. Roundtrip Diameter: The maximum sum $d(u, v) + d(v, u)$ over all pairs.

Prior to this work, directed diameter algorithms were limited to a few discrete points: exact solutions (slow), 2-approximations (fast), and 3/2-approximations (medium speed). This paper bridges this gap, showing that directed graphs can also support a continuous spectrum of approximation trade-offs, bringing their theoretical understanding closer to that of undirected graphs.

Algorithmic Breakthroughs in Directed Diameter

The authors achieve these new upper bounds by innovatively applying Fast Matrix Multiplication (FMM) to sparse graphs. Traditionally, FMM is reserved for dense graphs, but by designing a recursive algorithm, the authors break the $n^{1.5}$ time barrier for sparse graphs. This approach yields a sequence of approximation ratios, such as $7/4$ and $11/6$, with corresponding improvements in running time.

Approximation trade-offs for directed diameter, showing the new algorithms (blue) filling the previous gaps.

Specifically, the paper introduces a randomized $(2 - 1/k + \epsilon)$-approximation algorithm for directed weighted graphs. A notable result is a 7/4-approximation achieved in approximately $O(m^{1.458})$ time, significantly outperforming the previous $O(m^{1.5})$ benchmark for that level of accuracy. This suggests that to surpass certain speed limits in sparse graphs, the algebraic power of matrix multiplication is essential.

Hardness of Roundtrip Diameter

On the lower-bound side, the paper demonstrates that roundtrip diameter is strictly more difficult than one-way diameter. Using novel hardness reductions from the All-Nodes $k$-Cycle hypothesis and the $\ell_\infty$-Closest-Pair problem from geometry, the authors prove that certain approximation levels are likely impossible in sub-quadratic time.

Hardness results for roundtrip diameter, illustrating the regions where sub-quadratic algorithms are precluded by complexity hypotheses.

Key findings include:

  • A 5/3-approximation for roundtrip diameter cannot be computed in sub-quadratic time unless the All-Nodes $k$-Cycle hypothesis is false.
  • Achieving better than a 2-approximation for roundtrip diameter in sub-quadratic time would imply a major breakthrough in the $\ell_\infty$-Closest-Pair problem, a classic challenge in computational geometry.

Discussion and Future Work

This work significantly advances our understanding of graph diameters by aligning the theoretical landscape of directed graphs more closely with that of undirected graphs. By breaking the "combinatorial barrier" with algebraic techniques and establishing new geometric lower bounds, the authors provide a clearer picture of the inherent complexity of network distances.

However, several challenges remain. The new algorithm's dependency on Fast Matrix Multiplication leaves open the question of whether a "purely combinatorial" algorithm can break the $n^{1.5}$ barrier. Additionally, there is still a gap between the $5/3$ lower bound and the factor-2 upper bound for roundtrip diameter. Finally, the variant known as "Min-Diameter" (the minimum of $d(u,v)$ and $d(v,u)$) remains largely unexplored and appears even more computationally demanding.

Summary updated

BibTeX
@inproceedings{abboud2023diameter,
  author = {Amir Abboud and Mina Dalirrooyfard and Ray Li and Virginia Vassilevska Williams},
  title = {{On Diameter Approximation in Directed Graphs}},
  booktitle = {ESA},
  year = {2023},
  doi = {10.4230/lipics.esa.2023.2},
}
Figure