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

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(),
[&](auto idx) -> bool
{return idx > _edge_index_range;});
{return idx >= _edge_index_range;});
_free_indexes.erase(iter_idx, _free_indexes.end());
if (_keep_epos)
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