diff options
Diffstat (limited to 'src/Bipartite_graph_matching/include/gudhi/Graph_matching.h')
-rw-r--r-- | src/Bipartite_graph_matching/include/gudhi/Graph_matching.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Bipartite_graph_matching/include/gudhi/Graph_matching.h b/src/Bipartite_graph_matching/include/gudhi/Graph_matching.h index 5133646d..a2754333 100644 --- a/src/Bipartite_graph_matching/include/gudhi/Graph_matching.h +++ b/src/Bipartite_graph_matching/include/gudhi/Graph_matching.h @@ -176,8 +176,7 @@ inline void Graph_matching::update(std::deque<int>& path) { for (auto it = path.cbegin(); it != path.cend(); ++it) { // Be careful, the iterator is incremented twice each time int tmp = *it; - ++it; - v_to_u[*it] = tmp; + v_to_u[*(++it)] = tmp; } } |