]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/graph/example/cycle_canceling_example.cpp
1 //=======================================================================
2 // Copyright 2013 University of Warsaw.
3 // Authors: Piotr Wygocki
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //=======================================================================
10 #include <boost/graph/cycle_canceling.hpp>
11 #include <boost/graph/edmonds_karp_max_flow.hpp>
13 #include "../test/min_cost_max_flow_utils.hpp"
17 boost::SampleGraph::vertex_descriptor s
,t
;
18 boost::SampleGraph::Graph g
;
19 boost::SampleGraph::getSampleGraph(g
, s
, t
);
21 boost::edmonds_karp_max_flow(g
, s
, t
);
22 boost::cycle_canceling(g
);
24 int cost
= boost::find_flow_cost(g
);