Fix another manifestation of the off-by-one
This commit is contained in:
parent
261636febb
commit
a4460abc83
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user