From 098a4e4ef62eab433621fedf4049a3925b1b43f7 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 16 Dec 2020 12:05:02 +0100 Subject: [PATCH] Reset furthest value in Search --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index bb73951..d746a48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -220,6 +220,7 @@ impl Search { self.visited.clear(); self.candidates.clear(); self.nearest.clear(); + self.furthest = OrderedFloat::from(f32::INFINITY); } /// Track node `pid` as a potential new neighbor for the given `point`