Make sure to terminate when the core heaps are empty
This commit is contained in:
parent
2ff2ce460c
commit
48d1a5ec5d
@ -186,7 +186,8 @@ class DirectShortestPathRouting final
|
|||||||
}
|
}
|
||||||
|
|
||||||
// run two-target Dijkstra routing step on core with termination criterion
|
// run two-target Dijkstra routing step on core with termination criterion
|
||||||
while (distance > (forward_core_heap.MinKey() + reverse_core_heap.MinKey()) )
|
while (0 < (forward_core_heap.Size() + reverse_core_heap.Size()) &&
|
||||||
|
distance > (forward_core_heap.MinKey() + reverse_core_heap.MinKey()))
|
||||||
{
|
{
|
||||||
if (!forward_core_heap.Empty())
|
if (!forward_core_heap.Empty())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user