summaryrefslogtreecommitdiff
path: root/src/Bipartite_graph_matching/include/gudhi/Graph_matching.h
diff options
context:
space:
mode:
authorfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-07-03 18:03:02 +0000
committerfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-07-03 18:03:02 +0000
commit42a123c74255be2e2471eb35fd9226ceea5a011c (patch)
tree131c0592d83472d16bd432ce5d54d7f7c38e2bf6 /src/Bipartite_graph_matching/include/gudhi/Graph_matching.h
parent438f5078b455f4b8dfbe0b5ed217685f6c50260c (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.h3
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;
}
}