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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext bf710a7d-8056-44ca-8778-8af07ff62589Cited by top-tier papers15
- Near-optimal fully dynamic densest subgraphSaurabh Sawlani, Junxing WangSTOC 2020 · 46 citations
- Cut-Equivalent Trees are Optimal for Min-Cut QueriesAmir Abboud, Robert Krauthgamer, Ohad TrabelsiFOCS 2020 · 20 citations
- A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple GraphsJason Li, Debmalya Panigrahi, Thatchaphol SaranurakFOCS 2021 · 19 citations
- 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
- Approximate Gomory-Hu tree is faster than n - 1 max-flowsJason Li, Debmalya PanigrahiSTOC 2021 · 15 citations
Related papers
- Subcubic algorithms for Gomory-Hu tree in unweighted graphsAmir Abboud, Robert Krauthgamer, Ohad TrabelsiSTOC 2021 · 2 citations
- APMF < APSP? Gomory-Hu Tree for Unweighted Graphs in Almost-Quadratic TimeAmir Abboud, Robert Krauthgamer, Ohad TrabelsiFOCS 2021 · 5 citations
- 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
- (Almost) Ruling Out SETH Lower Bounds for All-Pairs Max-FlowOhad TrabelsiSODA 2025
- A Simple and Fast Reduction from Gomory-Hu Trees to Polylog MaxflowsMaximilian Probst Gutenberg, Rasmus Kyng, Weixuan Yuan, Wuwei YuanSODA 2026
