Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhu committed Sep 6, 2023
1 parent 67b5eb1 commit 8f14de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasketch/hnsw.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def insert(
)
}
# For all levels above the current level, we create an empty graph.
for _ in range(len(self._graphs), level):
for _ in range(len(self._graphs), level + 1):
self._graphs.append(_Layer(key))
# We set the entry point for each new level to be the new node.
self._entry_point = key
Expand Down

0 comments on commit 8f14de2

Please sign in to comment.