Commit 20244ea5 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix bug with Graph.shrink_to_fit()

This fixes issue #457
parent b6f8c18d
Pipeline #406 failed with stage
in 509 minutes and 29 seconds
......@@ -459,7 +459,7 @@ public:
auto iter_idx = std::remove_if(_free_indexes.begin(),
_free_indexes.end(),
[&](auto idx) -> bool
{return idx > _edge_index_range;});
{return idx >= _edge_index_range;});
_free_indexes.erase(iter_idx, _free_indexes.end());
_free_indexes.shrink_to_fit();
if (_keep_epos)
......
Markdown is supported
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