Commit e5a0b5e4 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix edge re-indexing, when only one edge is deleted

parent 818bf153
......@@ -217,10 +217,10 @@ void GraphInterface::ReIndexEdges()
for (tie(e, e_end) = out_edges(*v, _mg); e != e_end; ++e)
size_t index = _edge_index[*e];
if (index >= n_edges)
if (index >= edge_map.size())
edge_map.resize(index+1, make_pair(edge_t(), false));
if (index >= n_edges)
if (!edge_map[index].second)
edge_map[index] = make_pair(*e, true);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment