In the Boost Graph Library documentation it says that when you remove a vertex from a graph (when its vertices are stored in a vector at least), all iterators (and descriptors) are invalidated.
This surprised me, as it seems not be semantically necessary to do so.
Is there a way to make adjacency_list
work in a way that doesn't aggressively invalidate iterators in such a case? Can't I somehow just 'invalidate' the vertex and garbage-collect it at some convenient time?