Subject: [Boost-bugs] [Boost C++ Libraries] #3016: kolmogorov_max_flow() example does not compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-11 09:42:15
#3016: kolmogorov_max_flow() example does not compile
-------------------------------+--------------------------------------------
Reporter: kigurai_at_[hidden] | Owner:
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: None
Version: Boost 1.38.0 | Severity: Problem
Keywords: |
-------------------------------+--------------------------------------------
The current documentation (version 1.39.0) for kolmogorov_max_flow gives
an example where the function is called as:
flow = kolmogorov_max_flow(g, s, t);
But there is no function that accepts that kind of parameters, and when I
tried to compile it spat out a load of compile errors.
I solved it by chaning/adding the following:
// We need a "IndexMap" for the graph
property_map<Graph, vertex_index_t>::type
index_map = get(vertex_index, g);
flow = kolmogorov_max_flow(g, capacity, residual_capacity, rev,
index_map, s, t);
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3016> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC