All-Pairs Max-Flow is no Harder than Single-Pair Max-Flow: Gomory-Hu Trees in Almost-Linear Time
Amir Abboud, Jason Li, Debmalya Panigrahi, Thatchaphol Saranurak
Abstract
A Gomory-Hu tree (also called a cut tree) succinctly represents min-cuts (and therefore, max-flow values) of all pairs of vertices in an undirected graph. In this paper, we give an -time algorithm for constructing a Gomory-Hu tree for a graph with m edges. This shows that the all-pairs max-flows problem has the same running time as the single-pair max-flow problem, up to a subpolynomial factor. Prior to our work, the best known Gomory-Hu tree algorithm was obtained in recent work by Abboud et al. (FOCS 2022) and requires time for a graph with n vertices. Our result marks a natural culmination of over 60 years of research into the all-pairs maxflows problem that started with Gomory and Hu’s pathbreaking result introducing the Gomory-Hu tree in 1961.
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.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Parallel and Distributed Expander Decomposition: Simple, Fast, and Near-Optimal cites Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time
- Parallel and Distributed Expander Decomposition: Simple, Fast, and Near-Optimal cites Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing
- Parallel and Distributed Expander Decomposition: Simple, Fast, and Near-Optimal cites Deterministic Algorithms for Decremental Shortest Paths via Layered Core Decomposition
- Parallel and Distributed Expander Decomposition: Simple, Fast, and Near-Optimal cites Deterministic Distributed Expander Decomposition and Routing with Applications in Distributed Derandomization
- Combinatorial Maximum Flow via Weighted Push-Relabel on Shortcut Graphs cites Maximum Flow by Augmenting Paths in n2+o(1) Time
- Combinatorial Maximum Flow via Weighted Push-Relabel on Shortcut Graphs cites Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing
- Combinatorial Maximum Flow via Weighted Push-Relabel on Shortcut Graphs cites Deterministic Distributed Expander Decomposition and Routing with Applications in Distributed Derandomization
- Maximum Flow by Augmenting Paths in n2+o(1) Time cites Minimum cost flows, MDPs, and ℓ1-regression in nearly linear time for dense instances
- Maximum Flow by Augmenting Paths in n2+o(1) Time cites Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing
- Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time cites Minimum cost flows, MDPs, and ℓ1-regression in nearly linear time for dense instances
- Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time cites Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing
- Faster All-Pairs Minimum Cut: Bypassing Exact Max-Flow cites Deterministic Almost-Linear-Time Gomory-Hu Trees
- Deterministic Algorithms for Decremental Shortest Paths via Layered Core Decomposition cites Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing
- Deterministic Almost-Linear-Time Gomory-Hu Trees cites Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time
Cited by top-tier papers17
- Deterministic Almost-Linear-Time Gomory-Hu TreesAmir Abboud, Rasmus Kyng, Jason Li, Debmalya Panigrahi et al.FOCS 2025 · 10 citations
- Faster All-Pairs Minimum Cut: Bypassing Exact Max-FlowYotam Kenneth-Mordoch, Robert KrauthgamerSTOC 2026 · 7 citations
- Maximum Flow by Augmenting Paths in n2+o(1) TimeAaron Bernstein, Joakim Blikstad, Thatchaphol Saranurak, Ta-Wei TuFOCS 2024 · 4 citations
- Parallel and Distributed Expander Decomposition: Simple, Fast, and Near-OptimalDaoyuan Chen, Simon Meierhans, Maximilian Probst Gutenberg, Thatchaphol SaranurakSODA 2025 · 3 citations
- Combinatorial Maximum Flow via Weighted Push-Relabel on Shortcut GraphsAaron Bernstein, Joakim Blikstad, Jason Li, Thatchaphol Saranurak et al.FOCS 2025 · 2 citations
Builds on14
- Minimum cost flows, MDPs, and ℓ1-regression in nearly linear time for dense instancesJan van den Brand, Yin Tat Lee, Yang P. Liu, Thatchaphol Saranurak et al.STOC 2021 · 61 citations
- Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion BalancingAaron Bernstein, Maximilian Probst Gutenberg, Thatchaphol SaranurakFOCS 2020 · 35 citations
- Deterministic Distributed Expander Decomposition and Routing with Applications in Distributed DerandomizationYi-Jun Chang, Thatchaphol SaranurakFOCS 2020 · 31 citations
- Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear TimeAaron Bernstein, Maximilian Probst Gutenberg, Thatchaphol SaranurakFOCS 2021 · 27 citations
- Deterministic Algorithms for Decremental Shortest Paths via Layered Core DecompositionJulia Chuzhoy, Thatchaphol SaranurakSODA 2021 · 24 citations
Related papers
- 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
- Subcubic algorithms for Gomory-Hu tree in unweighted graphsAmir Abboud, Robert Krauthgamer, Ohad TrabelsiSTOC 2021 · 2 citations
- Approximate Gomory-Hu tree is faster than n - 1 max-flowsJason Li, Debmalya PanigrahiSTOC 2021 · 15 citations
- A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple GraphsJason Li, Debmalya Panigrahi, Thatchaphol SaranurakFOCS 2021 · 19 citations
- A Simple and Fast Reduction from Gomory-Hu Trees to Polylog MaxflowsMaximilian Probst Gutenberg, Rasmus Kyng, Weixuan Yuan, Wuwei YuanSODA 2026
