Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjacency_matrix::add_vertex always aborts in Debug mode ? #359

Open
Becheler opened this issue Jan 22, 2024 · 2 comments
Open

adjacency_matrix::add_vertex always aborts in Debug mode ? #359

Becheler opened this issue Jan 22, 2024 · 2 comments
Assignees

Comments

@Becheler
Copy link

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 ?

@jeremy-murphy
Copy link
Contributor

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 jeremy-murphy self-assigned this Jan 22, 2024
@Becheler
Copy link
Author

Wonderful !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants