Constant girth approximation for directed graphs in subquadratic time

Shiri Chechik, Yang P. Liu, Omer Rotem, Aaron Sidford

Introduction

The girth of a graph—defined as the length of its shortest cycle—is a fundamental structural property in graph theory and network analysis. While finding the exact girth of an undirected graph can be done relatively efficiently, directed graphs present a significantly steeper challenge. For decades, computing the exact girth of a directed graph has been tied to the All-Pairs Shortest Paths (APSP) problem, requiring $O(mn)$ time. In the realm of fine-grained complexity, finding a "truly subcubic" algorithm for this problem remains a major open challenge.

Because exact computation is often prohibitively slow for large-scale networks, researchers have turned to approximation algorithms. In undirected graphs, constant-factor approximations are achievable in subquadratic time using spanners. However, directed graphs lack this symmetry; the distance from $u$ to $v$ does not necessarily equal the distance from $v$ to $u$. To address this, researchers utilize "roundtrip spanners" to preserve the roundtrip distance $d(u \to v) + d(v \to u)$. Prior to this work, all constant-factor girth approximation algorithms for directed graphs still hit the $O(mn)$ bottleneck. This paper breaks that barrier, providing the first subquadratic-time algorithms for constant-factor girth approximation.

Methodology

The authors introduce two primary algorithmic frameworks to bypass the APSP bottleneck: Randomized Pruning and Overlapping Ball-Growing.

1. Randomized Pruning

To find a cycle of length $R$, the algorithm samples a set of $\tilde{O}(\sqrt{n})$ landmark vertices. If a short cycle does not intersect these landmarks, the algorithm employs a randomized pruning procedure. The intuition is that if a vertex $v$ belongs to a cycle of length $R$, any vertex in its proximity must also be close to the rest of the cycle. By aggressively pruning vertices that fail this similarity test, the algorithm reduces the candidate search space for each vertex to just $\tilde{O}(\sqrt{n})$ candidates, enabling a localized search that is significantly faster than a global APSP computation.

2. Overlapping Ball-Growing

In undirected graphs, spanners are often built by partitioning the graph into clusters. In directed graphs, standard partitioning often destroys roundtrip paths. The authors propose a deterministic "overlapping" boundary technique. When growing "inballs" and "outballs" around vertices, the algorithm identifies boundaries where the ball's growth is constrained. By recursing on an expanded, overlapping boundary and then deleting the core, the algorithm ensures that roundtrip distances are preserved across the decomposition.

3. The Hybrid Approach

By combining the randomized similarity testing of the first method with the deterministic structural decomposition of the second, the authors create a parameterized framework. This "mashup" allows for a trade-off between approximation quality and computational efficiency, leading to algorithms that scale nearly linearly with the number of edges.

Key Results

The paper establishes several new state-of-the-art theoretical bounds for directed graph algorithms:

  • 3-Approximation for Girth: A randomized algorithm achieves a 3-multiplicative approximation of the girth in $\tilde{O}(m\sqrt{n})$ time.
  • Constant Roundtrip Spanners: The authors present a randomized algorithm to construct an 8-multiplicative roundtrip spanner with $\tilde{O}(n^{3/2})$ edges in $\tilde{O}(m\sqrt{n})$ time.
  • Deterministic Efficiency: The work provides the first deterministic, nearly linear time $\tilde{O}(m^{1+1/k})$ algorithm for an $O(k \log \log n)$ girth approximation.
  • Improved Approximation Factors: A combined randomized approach yields an $O(k \log k)$ approximation in $\tilde{O}(m^{1+1/k})$ time, notably removing the previous dependence on $n$ in the approximation factor.

Discussion and Future Work

This research demonstrates that directed graphs are not inherently doomed to APSP runtimes for girth approximation. By shifting the focus from exact distances to vertex similarity and overlapping decompositions, the authors bridge the efficiency gap between directed and undirected graph approximations.

However, several open questions remain. While the randomized algorithms provide constant-factor approximations, a deterministic algorithm that achieves an $O(k)$ roundtrip spanner in $\tilde{O}(mn^{1/k})$ time has yet to be found. Additionally, the authors identify a "spanner barrier," noting that current girth approximations are limited by the techniques used to build spanners. Bypassing this barrier could lead to even faster runtimes. Finally, adapting these techniques for parallel computing environments—specifically for parallel reachability—remains a promising frontier for future implementation.

Summary updated

BibTeX
@inproceedings{chechik2020constant,
  author = {Shiri Chechik and Yang P. Liu and Omer Rotem and Aaron Sidford},
  title = {{Constant girth approximation for directed graphs in subquadratic time}},
  booktitle = {STOC},
  year = {2020},
  doi = {10.1145/3357713.3384330},
}
Figure