SetEf
API Definition
int SetEf(int ef);
Function
Sets the size of the candidate node list during search.
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
ef |
Size of the candidate node list during search. |
int |
[1,n], where n indicates the data volume. |
Return Value
Data Type |
Description |
|---|---|
int |
If the parameter value exceeds the value range, -1 is returned. If this API is called before BuildSearcher or Load/Deserialize/LoadGraph is called, -1 is returned. Otherwise, 0 is returned. |
Parent topic: C++