Fix another manifestation of the off-by-one

This commit is contained in:
Patrick Niklaus 2017-08-16 21:31:38 +00:00 committed by Patrick Niklaus
parent 261636febb
commit a4460abc83

View File

@ -140,11 +140,6 @@ void relaxOutgoingEdges(const DataFacade<mld::Algorithm> &facade,
BOOST_ASSERT(!shortcut_durations.empty());
const NodeID to = *destination;
if (facade.ExcludeNode(to))
{
continue;
}
if (shortcut_weight != INVALID_EDGE_WEIGHT && node != to)
{
const auto to_weight = weight + shortcut_weight;
@ -174,11 +169,6 @@ void relaxOutgoingEdges(const DataFacade<mld::Algorithm> &facade,
BOOST_ASSERT(!shortcut_durations.empty());
const NodeID to = *source;
if (facade.ExcludeNode(to))
{
continue;
}
if (shortcut_weight != INVALID_EDGE_WEIGHT && node != to)
{
const auto to_weight = weight + shortcut_weight;