Address PR comments

This commit is contained in:
Patrick Niklaus
2017-02-07 14:34:15 +00:00
parent bf690df97a
commit 0c04c6cafb
3 changed files with 10 additions and 15 deletions
+5 -5
View File
@@ -349,11 +349,11 @@ void GraphContractor::Run(double core_factor)
edge.data.backward == current_data.backward)
{
// found a duplicate edge with smaller weight, update it.
if (edge.data.weight < current_data.weight)
{
current_data = edge.data;
}
// don't insert duplicates
if (edge.data.weight < current_data.weight)
{
current_data = edge.data;
}
// don't insert duplicates
continue;
}
}