graph
graph copied to clipboard
adjacency_matrix::add_vertex always aborts in Debug mode ?
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 ?
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!
Wonderful !