StoerWagner
Stoer-Wagner is a deterministic algorithm for computing the global minimum cut of an undirected, weighted graph. It was introduced by R. Stoer and F. Wagner in 1997. The global minimum cut is the smallest total weight of edges whose removal separates the graph into two nonempty components.
The algorithm finds the minimum cut through a sequence of phases. In each phase, it repeatedly selects
A straightforward implementation uses an adjacency matrix and runs in O(n^3) time with O(n^2) space. With careful
Stoer-Wagner is related to other min-cut concepts and algorithms, such as the Gomory–Hu tree, which represents