Find the minimum cut in a graph