I have an undirected weighted graph and I need to find the minimum cut that separates two sets of vertices. I can modify my setup so as to reduce the problem to finding the minimum cut that separates two given vertices. I want to add that the weights are positive and fractional.
The Stoer–Wagner algorithm does everything except keeping specified nodes on different sides of the cut, and I was curious if there's any way of modifying SW to do that.
Thank you.