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

View File

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