Skip to content
Snippets Groups Projects
Commit 5512ee94 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix bug in GuidedNodeSelector::chooseEdge

parent dee13b9e
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ namespace hpp {
if (it->second->to () == node || it->second->to () == *it1)
nn.insert (it->second, it->first);
}
if (nn.size () > 0)
if (nn.size () > 0 && nn.totalWeight() > 0)
return nn ();
hppDout (error, "This node has no neighbors to get to an admissible states.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment