This commit is contained in:
Siarhei Fedartsou 2024-05-26 12:36:45 +02:00
parent 8b34d5b40c
commit 3eaa676626

View File

@ -741,8 +741,11 @@ double getNetworkDistance(SearchEngineData<Algorithm> &engine_working_data,
if (const auto node = if (const auto node =
forward_heap.GetHeapNodeIfWasInserted(target_phantom.forward_segment_id.id)) forward_heap.GetHeapNodeIfWasInserted(target_phantom.forward_segment_id.id))
{ {
if (node->weight < weight_upper_bound) {
return from_alias<double>(node->data.distance); return from_alias<double>(node->data.distance);
} }
return std::numeric_limits<double>::max();
}
} }
// if (target_phantom.IsValidReverseTarget()) { // if (target_phantom.IsValidReverseTarget()) {
// if (const auto node = // if (const auto node =