Boost C++ Libraries: Ticket #3357: csr assign method not working with undirected graphs https://svn.boost.org/trac10/ticket/3357 <p> Hi! </p> <p> Assigning an undirected graph to a csr graph results in an ill defined object. Example: </p> <p> <a class="missing wiki">UndirAdjacencyListGraph</a> adjGraph; </p> <p> <a class="missing wiki">CsrGraph</a> csr; </p> <p> csr.assign(adjGraph); </p> <p> This will result in an ill defined csr graph, but with the trick of doubling the edges nominally, everything works as it should: </p> <p> csr.assign(adjGraph, vertexIndex, num_vertices(adjGraph), 2*num_edges(adjGraph)); </p> <p> works perfeclty and returns a csr graph where the undirected links have been replaced by 2 directed edges appropietly. </p> <p> Greetings </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3357 Trac 1.4.3 Jeremiah Willcock Wed, 19 Aug 2009 20:54:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3357#comment:1 https://svn.boost.org/trac10/ticket/3357#comment:1 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/55667" title="Fixed edge doubling for copying from an undirected graph to a CSR ...">[55667]</a>) Fixed edge doubling for copying from an undirected graph to a CSR graph; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3357" title="#3357: Bugs: csr assign method not working with undirected graphs (closed: fixed)">#3357</a> </p> Ticket