Skip to content

Commit b4b7b86

Browse files
authored
Merge pull request #224 from uestc-lfs/fix-update-ep
currObj should be updated as the closest from all candidated.
2 parents 334cc6c + fa32338 commit b4b7b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hnswlib/hnswalg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ namespace hnswlib {
407407
top_candidates.pop();
408408
}
409409

410-
tableint next_closest_entry_point = selectedNeighbors[0];
410+
tableint next_closest_entry_point = selectedNeighbors.back();
411411

412412
{
413413
linklistsizeint *ll_cur;

0 commit comments

Comments
 (0)