diff --git a/hnswlib/hnswalg.h b/hnswlib/hnswalg.h index 7f34e62b..d1597400 100644 --- a/hnswlib/hnswalg.h +++ b/hnswlib/hnswalg.h @@ -196,6 +196,17 @@ class HierarchicalNSW : public AlgorithmInterface { 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::vector>, CompareByFirst> searchBaseLayer(tableint ep_id, const void *data_point, int layer) {