Boost C++ Libraries: Ticket #3016: kolmogorov_max_flow() example does not compile https://svn.boost.org/trac10/ticket/3016 <p> The current documentation (version 1.39.0) for kolmogorov_max_flow gives an example where the function is called as: </p> <blockquote> <p> flow = kolmogorov_max_flow(g, s, t); </p> </blockquote> <p> 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. </p> <p> I solved it by chaning/adding the following: </p> <blockquote> <p> <em> We need a "<a class="missing wiki">IndexMap</a>" for the graph property_map&lt;Graph, vertex_index_t&gt;::type </em></p> <blockquote> <p> index_map = get(vertex_index, g); </p> </blockquote> </blockquote> <blockquote> <p> flow = kolmogorov_max_flow(g, capacity, residual_capacity, rev, index_map, s, t); </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3016 Trac 1.4.3 Steven Watanabe Tue, 12 May 2009 15:15:37 GMT component changed; owner set https://svn.boost.org/trac10/ticket/3016#comment:1 https://svn.boost.org/trac10/ticket/3016#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Douglas Gregor</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">graph</span> </li> </ul> Ticket Jeremiah Willcock Tue, 12 May 2009 19:12:53 GMT owner, status changed https://svn.boost.org/trac10/ticket/3016#comment:2 https://svn.boost.org/trac10/ticket/3016#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jeremiah Willcock Wed, 13 May 2009 22:48:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3016#comment:3 https://svn.boost.org/trac10/ticket/3016#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> Which example are you trying? The kolmogorov-eg.cpp file in libs/graph/example works for me. </p> Ticket anonymous Thu, 14 May 2009 06:52:48 GMT <link>https://svn.boost.org/trac10/ticket/3016#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3016#comment:4</guid> <description> <p> The example I am referring to is at the bottom of the documentation at <a href="http://www.boost.org/doc/libs/1_39_0/libs/graph/doc/kolmogorov_max_flow.html">http://www.boost.org/doc/libs/1_39_0/libs/graph/doc/kolmogorov_max_flow.html</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Thu, 14 May 2009 14:52:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3016#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3016#comment:5</guid> <description> <p> Sorry about that -- the docs have a copy of kolmogorov-eg.cpp that doesn't work, but the one in the example directory does. I fixed the docs in <a class="changeset" href="https://svn.boost.org/trac10/changeset/52994" title="Replaced broken example in docs with working version from example ...">r52994</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>