Struct faiss::nsg::Graph
-
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 virtual ~Graph()
-
inline node_t at(int i, int j) const
-
inline node_t &at(int i, int j)
-
inline virtual size_t get_neighbors(int i, node_t *neighbors) const
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
-
inline Graph(node_t *data, int N, int K)