Namespace faiss::nsg

namespace nsg


DistanceComputer *storage_distance_computer(const Index *storage)
template<class node_t>
struct Graph

Public Functions

inline Graph(node_t *data, int N, int K)
inline Graph(int N, int K)
inline Graph(const Graph &g)
inline ~Graph()
inline node_t at(int i, int j) const
inline node_t &at(int i, int j)

Public Members

node_t *data

the flattened adjacency matrix, size N-by-K

int K

nb of neighbors per node

int N

total nb of nodes

bool own_fields

the underlying data owned by itself or not