minimum-cut

Find all edges in min-cut

。_饼干妹妹 提交于 2019-12-11 10:20:08
问题 Let (G,s,t,{c}) be a flow network, and let F be the set of all edges e for which there exists at least one minimum cut (A,B) such that e goes from A to B. Give a polynomial time algorithm that finds all edges in F. NOTE: So far I know I need to run Ford-Fulkerson so each edges has a flow. Furthermore I know for all edges in F, the flow f(e) = c(e). However not all edges in a graph G which respects that constraint will be in a min-cut. I am stuck here. 回答1: Suppose you have computed a max flow

Cut set of a graph, Boost Graph Library

匆匆过客 提交于 2019-11-27 04:07:54
问题 I've been struggling a lot to figure out how to do this. I'm interested in quickly finding the cut set of a graph. I know that BGL supports finding the cut set by iteration over the colorMap arguments supported by, e.g., edmonds_karp_max_flow. The Gomory Hu algorithm needs to make several calls to a minimum cut algorithm. The result that I was hoping for was to have a multimap that contains: (color, vertex) The following code is an attempt at rewriting the example from the Boost Graph Library