Reset furthest value in Search
This commit is contained in:
parent
b20f4efeae
commit
098a4e4ef6
|
@ -220,6 +220,7 @@ impl Search {
|
||||||
self.visited.clear();
|
self.visited.clear();
|
||||||
self.candidates.clear();
|
self.candidates.clear();
|
||||||
self.nearest.clear();
|
self.nearest.clear();
|
||||||
|
self.furthest = OrderedFloat::from(f32::INFINITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Track node `pid` as a potential new neighbor for the given `point`
|
/// Track node `pid` as a potential new neighbor for the given `point`
|
||||||
|
|
Loading…
Reference in New Issue