Skip to content

Commit

Permalink
Getters for max elements, element count and num deleted. (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorenc committed Jan 14, 2023
1 parent 3e006ea commit 28681fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hnswlib/hnswalg.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,17 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
return (int) r;
}

size_t getMaxElements() {
return max_elements_;
}

size_t getCurrentElementCount() {
return cur_element_count;
}

size_t getDeletedCount() {
return num_deleted_;
}

std::priority_queue<std::pair<dist_t, tableint>, std::vector<std::pair<dist_t, tableint>>, CompareByFirst>
searchBaseLayer(tableint ep_id, const void *data_point, int layer) {
Expand Down

0 comments on commit 28681fc

Please sign in to comment.