API Description
Table 1 describes the C++ APIs provided by KBest.
API |
Function |
|---|---|
KBest |
Initializes the build of graph search (parameterized or no-argument). |
Add |
Builds a graph index. |
BuildSearcher |
Builds a searcher. |
Search |
Searches for a graph. |
SetEf |
Sets the size of the candidate node list during search. |
Save |
Saves a searcher to a specified path. |
Load |
Loads a searcher from a specified path. |
SaveGraph |
Saves a graph index to a specified path. |
LoadGraph |
Loads a graph index from a specified path. |
Serialize |
Stores the content of the searcher in an array. |
Deserialize |
Restores the content of the searcher in an array. |
GetNTotal |
Returns the base library data volume in the graph index. |
GetDim |
Returns the data dimension in the graph index. |
SetEarlyStoppingParams |
Sets the early stopping optimization parameters. |