Boost C++ Libraries: Ticket #9347: Boost Graph Library's prim_minimum_spanning_tree function has a problem in version 1.55.0 https://svn.boost.org/trac10/ticket/9347 <p> The function "prim_minimum_spanning_tree" has a problem in Boost Graph Library in version 1.55.0. The prim_minimum_spanning_tree is giving an exception "e boost::negative_edge &amp; 0x00007fff5fbfe1a0 0x00007fff5fbfe1a0", a negative edge cost exception even thought all edge cost are positive. I have a simple example with all positive edge costs and I attached the script for the demonstration purpose. Meanwhile, this function has no problems when it is called in version 1.53.0. For the attached example script, I called the function in both versions. I obtained a correct solution with version 1.53.0. However version 1.55.0 throws a negative edge cost exception. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9347 Trac 1.4.3 Murodzhon Akhmedov <murodzhon@…> Wed, 06 Nov 2013 14:46:01 GMT attachment set https://svn.boost.org/trac10/ticket/9347 https://svn.boost.org/trac10/ticket/9347 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket Murodzhon Akhmedov <murodzhon@…> Wed, 06 Nov 2013 14:50:47 GMT attachment set https://svn.boost.org/trac10/ticket/9347 https://svn.boost.org/trac10/ticket/9347 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.2.cpp</span> </li> </ul> Ticket Jeremiah Willcock Wed, 06 Nov 2013 15:13:03 GMT <link>https://svn.boost.org/trac10/ticket/9347#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9347#comment:1</guid> <description> <p> I do not get an exception from either of those programs (GCC 4.9 snapshot on Linux). Which compiler are you using? If it's VC++, try using: </p> <pre class="wiki">boost::make_iterator_property_map(p.begin(), get(boost::vertex_index, g)) </pre><p> instead of <code>&amp;p[0]</code> in your argument list to <code>prim_minimum_spanning_tree</code>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Wed, 06 Nov 2013 15:13:36 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/9347#comment:2 https://svn.boost.org/trac10/ticket/9347#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">graph</span> </li> </ul> Ticket Murodzhon Akhmedov <murodzhon@…> Wed, 06 Nov 2013 15:38:39 GMT <link>https://svn.boost.org/trac10/ticket/9347#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9347#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9347#comment:2" title="Comment 2">jewillco</a>: </p> <p> I am using GCC, Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn). </p> <p> I changed &amp;p<a class="missing changeset" title="No changeset 0 in the repository">[0]</a> to boost::make_iterator_property_map(p.begin(), get(boost::vertex_index, g)) and still get an exception. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Wed, 06 Nov 2013 16:22:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9347#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9347#comment:4</guid> <description> <p> I tried it with clang++ on Mac OS X Mavericks and it still worked correctly; I was using the Boost trunk but the release candidate should not differ in anything relevant to this problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Mon, 11 Nov 2013 03:29:52 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9347#comment:5 https://svn.boost.org/trac10/ticket/9347#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket Jeremiah Willcock Mon, 11 Nov 2013 03:30:27 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/9347#comment:6 https://svn.boost.org/trac10/ticket/9347#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">invalid</span> </li> </ul> Ticket Jeremiah Willcock Mon, 11 Nov 2013 03:30:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9347#comment:7 https://svn.boost.org/trac10/ticket/9347#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> Ticket