From aa91470eabcc922e701697ebdda6cfc1101c564a Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Thu, 31 Jul 2014 10:30:18 +0200
Subject: [PATCH] Fix bug in Graph::chooseEdge

---
 src/graph/graph.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/graph/graph.cc b/src/graph/graph.cc
index 4cbc0c4..37f1813 100644
--- a/src/graph/graph.cc
+++ b/src/graph/graph.cc
@@ -86,7 +86,7 @@ namespace hpp {
       {
         Edges_t edges;
         for (Nodes_t::const_iterator it = nodes.begin();
-            it == nodes.end(); it++)
+            it != nodes.end(); it++)
           edges.push_back( (*it)->nodeSelector().lock()->chooseEdge(*it) );
         return edges;
       }
-- 
GitLab