Very Simple Methods for All Pairs Network Flow Analysis

Dan Gusfield

SIAM Journal on Computing · 1990 · 191 citations · 12 references

Concepts

TL;DR

The authors present a very simple algorithm that computes the maximum flow value between every pair of nodes in an undirected, capacitated graph using only n − 1 maximum‑flow computations. The method is implemented by adding only a handful of lines to any minimum‑cut program, yielding a compact flow tree and a simplified Gomory–Hu cut‑tree variant that eliminates node contraction and crossing‑cut restrictions. Experiments show that the implementation requires fewer than ten lines of code and that a cut tree can be computed with n − 1 oracle calls, returning any minimum (s, t) cut and its value for any node pair.

Abstract

A very simple algorithm for the classical problem of computing the maximum network flow value between every pair of nodes in an undirected, capacitated n node graph is presented; as in the well-known Gomory–Hu method, the method given here uses only $n - 1$ maximum flow computations. Our algorithm is implemented by adding only five simple lines of code to any program that produces a minimum cut; a program to produce an equivalent flow tree, which is a compact representation of the flow values, is obtained by adding only three simple lines of code to any program producing a minimum cut. A very simple version of the Gomory–Hu cut tree method that finds one minimum cut for every pair of nodes is also derived, and it is shown that the seemingly fundamental operation of that method, node contraction, is not needed, nor must crossing cuts be avoided. As a result, this version of the Gomory–Hu method is implemented by adding less than ten simple lines of code to any program that produces a minimum cut. The algorithms in this paper demonstrate that a cut tree of graph G can be computed with $n - 1$ calls to an oracle that alone knows G, and that, when given two nodes s and t, returns any arbitrary minimum $(s, t)$ cut and its value.

References

12