Guest User

Untitled

a guest
Jul 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <boost/graph/cycle_canceling.hpp>
  2. #include <boost/graph/edmonds_karp_max_flow.hpp>
  3.  
  4. #include "../test/min_cost_max_flow_utils.hpp"
  5.  
  6.  
  7. int main() {
  8. boost::SampleGraph::vertex_descriptor s,t;
  9. boost::SampleGraph::Graph g;
  10. boost::SampleGraph::getSampleGraph(g, s, t);
  11.  
  12. boost::edmonds_karp_max_flow(g, s, t);
  13. boost::cycle_canceling(g);
  14.  
  15. int cost = boost::find_flow_cost(g);
  16. assert(cost == 29);
  17. return 0;
  18. }
Add Comment
Please, Sign In to add comment