Boost C++ Libraries: Ticket #934: write_graphviz() crashes on G w/ no edge https://svn.boost.org/trac10/ticket/934 <pre class="wiki">In boost 1.21.2, write_graphviz() crashes on an adjacency_list graph with no edges. Here is the corrected definition of the function that crashes: template &lt;class G&gt; inline adj_list_edge_iterator(VertexIterator b, VertexIterator c, VertexIterator e, G&amp; g) : vBegin(b), vCurr(c), vEnd(e), m_g(&amp;g) { if ( vCurr != vEnd ) { while ( vCurr != vEnd &amp;&amp; out_degree(*vCurr, *m_g) == 0 ) ++vCurr; if( vCurr != vEnd ) { tie(eCurr, eEnd) = out_edges(*vCurr, *m_g); } } } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/934 Trac 1.4.3 jsiek Sun, 10 Jun 2001 02:39:23 GMT status changed https://svn.boost.org/trac10/ticket/934#comment:1 https://svn.boost.org/trac10/ticket/934#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=32836 Thanks for the bug fix. I've checked the change into CVS. </pre> Ticket