| 25 | : entity_(entity), max_degree_(max_degree), lock_pool_(kLockCnt) {} |
| 26 | |
| 27 | std::vector<diskann_id_t> DiskAnnAlgorithm::get_init_ids(DiskAnnContext *ctx) { |
| 28 | const auto &entity = ctx->get_entity(); |
| 29 | |
| 30 | std::vector<diskann_id_t> init_ids; |
| 31 | |
| 32 | init_ids.emplace_back(entity.medoid()); |
| 33 | |
| 34 | return init_ids; |
| 35 | } |
| 36 | |
| 37 | int DiskAnnAlgorithm::add_node(diskann_id_t id, DiskAnnContext *ctx) { |
| 38 | const void *vec = entity_.get_vector(id); |