graph icon indicating copy to clipboard operation
graph copied to clipboard

adjacency_matrix::add_vertex always aborts in Debug mode ?

Open Becheler opened this issue 2 years ago • 2 comments

I found this in graph/adjacency_matrix ligne 966 :

template < typename D, typename VP, typename EP, typename GP, typename A >
inline typename adjacency_matrix< D, VP, EP, GP, A >::vertex_descriptor
add_vertex(adjacency_matrix< D, VP, EP, GP, A >& g)
{
    // UNDER CONSTRUCTION
    BOOST_ASSERT(false);
    return *vertices(g).first;
}

Does it mean there is no way to add vertices to an already-constructed adjacency_matrix ? Am i missing something ?

Becheler avatar Jan 22 '24 13:01 Becheler

Yeah, weird. Looks like Jeremy Siek labelled it as UNDER CONSTRUCTION back in 2001, then Jeremiah Willcock added the assertion in 2011 as a way of enforcing it. So yes, looks adding and removing vertices was never completed. Something to put at the top of the TO-DO list!

jeremy-murphy avatar Jan 22 '24 23:01 jeremy-murphy

Wonderful !

Becheler avatar Jan 23 '24 10:01 Becheler