Lune

SODA2020Top-tier venue

New Algorithms and Lower Bounds for All-Pairs Max-Flow in Undirected Graphs

Amir Abboud, Robert Krauthgamer, Ohad Trabelsi

Abstract

We investigate the time-complexity of the All-Pairs Max-Flow problem: Given a graph with n nodes and m edges, compute for all pairs of nodes the maximum-flow value between them. If Max-Flow (the version with a given source-sink pair s, t) can be solved in time T (m), then an O(n 2 ) • T (m) is a trivial upper bound. But can we do better?

For directed graphs, recent results in fine-grained complexity suggest that this time bound is essentially optimal. In contrast, for undirected graphs with edge capacities, a seminal algorithm of Gomory and Hu (1961) runs in much faster time O(n)•T (m). Under the plausible assumption that Max-Flow can be solved in near-linear time m 1+o(1) , this half-century old algorithm yields an nm 1+o(1) bound. Several other algorithms have been designed through the years, including Õ(mn) time for unit-capacity edges (unconditionally), but none of them break the O(mn) barrier. Meanwhile, no super-linear lower bound was shown for undirected graphs.

We design the first hardness reductions for All-Pairs Max-Flow in undirected graphs, giving an essentially optimal lower bound for the node-capacities setting. For edge capacities, our efforts to prove similar lower bounds have failed, but we have discovered a surprising new algorithm that breaks the O(mn) barrier for graphs with unit-capacity edges! Assuming T (m) = m 1+o(1) , our algorithm runs in time m 3/2+o(1) and outputs a cut-equivalent tree (similarly to the Gomory-Hu algorithm). Even with current Max-Flow algorithms we improve state-of-the-art as long as m = O(n 5/3-ε ). Finally, we explain the lack of lower bounds by proving a non-reducibility result. This result is based on a new quasi-linear time Õ(m) non-deterministic algorithm for constructing a cut-equivalent tree and may be of independent interest.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs
  • Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites Cut-Equivalent Trees are Optimal for Min-Cut Queries
  • Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites Approximate Gomory-Hu tree is faster than n - 1 max-flows
  • A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs cites Cut-Equivalent Trees are Optimal for Min-Cut Queries
  • A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs cites Approximate Gomory-Hu tree is faster than n - 1 max-flows
  • Approximate Gomory-Hu tree is faster than n - 1 max-flows cites Cut-Equivalent Trees are Optimal for Min-Cut Queries
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. Near-optimal fully dynamic densest subgraphSaurabh Sawlani, Junxing WangSTOC 2020 · 46 citations
  2. Cut-Equivalent Trees are Optimal for Min-Cut QueriesAmir Abboud, Robert Krauthgamer, Ohad TrabelsiFOCS 2020 · 20 citations
  3. A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple GraphsJason Li, Debmalya Panigrahi, Thatchaphol SaranurakFOCS 2021 · 19 citations
  4. Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic TimeAmir Abboud, Robert Krauthgamer, Jason Li, Debmalya Panigrahi et al.FOCS 2022 · 16 citations
  5. Approximate Gomory-Hu tree is faster than n - 1 max-flowsJason Li, Debmalya PanigrahiSTOC 2021 · 15 citations

Related papers

  1. Subcubic algorithms for Gomory-Hu tree in unweighted graphsAmir Abboud, Robert Krauthgamer, Ohad TrabelsiSTOC 2021 · 2 citations
  2. APMF < APSP? Gomory-Hu Tree for Unweighted Graphs in Almost-Quadratic TimeAmir Abboud, Robert Krauthgamer, Ohad TrabelsiFOCS 2021 · 5 citations
  3. All-Pairs Max-Flow is no Harder than Single-Pair Max-Flow: Gomory-Hu Trees in Almost-Linear TimeAmir Abboud, Jason Li, Debmalya Panigrahi, Thatchaphol SaranurakFOCS 2023 · 11 citations
  4. (Almost) Ruling Out SETH Lower Bounds for All-Pairs Max-FlowOhad TrabelsiSODA 2025
  5. A Simple and Fast Reduction from Gomory-Hu Trees to Polylog MaxflowsMaximilian Probst Gutenberg, Rasmus Kyng, Weixuan Yuan, Wuwei YuanSODA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines