Hi,
I am trying to use boykov_kolmogorov_max_flow algorithm to find a minimum cut of some graph.
To build the graph, I first create source and sink vertices. I then add some vertices, and connect them. Each time I create and edge, I also create the reverse edge:
edge_descriptor_bool e01 = add_edge(v0, v1, _graph);
edge_descriptor_bool e10 = add_edge(v1, v0, _graph);
reverse[e01.first] = e10.first;
reverse[e10.first] = e01.first;
boost::property_map<Graph, boost::edge_reverse_t>::type reverse = get(boost::edge_reverse , _graph);