Rate This Document
Findability
Accuracy
Completeness
Readability

API Description

Table 1 describes the Python APIs provided by KBest.

Table 1 Python 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.