In the variant called
min s-t cut, the input contains, in addition to the graph, two nodes called
s (source) and
t (target / sink). The required output is a partition V = S + T such that s is in S and t is in T. In a
flow network, the minimum cut separates the source and sink vertices and minimizes the total sum of the capacities of the edges that are directed from the source side of the cut to the sink side of the cut. As shown in the
max-flow min-cut theorem, the weight of this cut equals the maximum amount of flow that can be sent from the source to the sink in the given network. In a weighted, undirected network, it is possible to calculate the cut that separates a particular pair of vertices from each other and has minimum possible total cost. A system of cuts that solves this problem for every possible vertex pair can be collected into a structure known as the
Gomory–Hu tree of the graph.
k-cut A generalization of the minimum cut problem with terminals is the -terminal cut, or multi-terminal cut. In a
planar graph, this problem can be solved in polynomial time. However, in general this problem is
NP-hard, even for k=3. ==Applications==