Skip to content

Commit

Permalink
Fix for #170 (level-one traversal during addition isn't correct)
Browse files Browse the repository at this point in the history
  • Loading branch information
searchivairus committed Dec 1, 2017
1 parent 74334a1 commit 3c8f88f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions similarity_search/src/method/hnsw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ namespace similarity {
break;
}
while (!resultSet.empty()) {
ep = resultSet.top().getMSWNodeHier(); // memorizing the closest
link(resultSet.top().getMSWNodeHier(), NewElement, level, space, delaunay_type_);
resultSet.pop();
}
Expand Down

0 comments on commit 3c8f88f

Please sign in to comment.