Class HnswNode

Class Documentation

class n2::HnswNode

Public Functions

HnswNode(int id, const Data *data, int level, size_t max_m, size_t max_m0)
void CopyHigherLevelLinksToOptIndex(char *mem_offset, uint64_t memory_per_node_higher_level) const
void CopyDataAndLevel0LinksToOptIndex(char *mem_offset, int higher_level_offset) const
int GetId() const
int GetLevel() const
size_t GetMaxM() const
size_t GetMaxM0() const
const float *GetData() const
std::vector<HnswNode*> &GetFriends(int level)
void SetFriends(int level, std::vector<HnswNode*> &new_friends)
std::mutex &GetAccessGuard()