diff options
author | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-07-03 18:03:02 +0000 |
---|---|---|
committer | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-07-03 18:03:02 +0000 |
commit | 42a123c74255be2e2471eb35fd9226ceea5a011c (patch) | |
tree | 131c0592d83472d16bd432ce5d54d7f7c38e2bf6 /src/Bipartite_graph_matching/include/gudhi/Graph_matching.h | |
parent | 438f5078b455f4b8dfbe0b5ed217685f6c50260c (diff) |
envelope tree
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/bottleneckDistance@675 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 7a66384ac0aaa5678d87d2a0b1eb59a45cbaf8ee
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; } } |