Fixes #2152 - weight vector needed to be reversed, and start index was wrong.
This commit is contained in:
parent
991a0b38c5
commit
5553dad423
@ -360,7 +360,7 @@ template <class DataFacadeT, class Derived> class BasicRoutingInterface
|
|||||||
if (target_traversed_in_reverse)
|
if (target_traversed_in_reverse)
|
||||||
{
|
{
|
||||||
start_index =
|
start_index =
|
||||||
id_vector.size() - phantom_node_pair.source_phantom.fwd_segment_position;
|
id_vector.size() - phantom_node_pair.source_phantom.fwd_segment_position - 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -372,6 +372,7 @@ template <class DataFacadeT, class Derived> class BasicRoutingInterface
|
|||||||
if (target_traversed_in_reverse)
|
if (target_traversed_in_reverse)
|
||||||
{
|
{
|
||||||
std::reverse(id_vector.begin(), id_vector.end());
|
std::reverse(id_vector.begin(), id_vector.end());
|
||||||
|
std::reverse(weight_vector.begin(), weight_vector.end());
|
||||||
end_index = id_vector.size() - phantom_node_pair.target_phantom.fwd_segment_position;
|
end_index = id_vector.size() - phantom_node_pair.target_phantom.fwd_segment_position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user