我要评分
获取效率
正确性
完整性
易理解

SetEf

API Definition

int SetEf(int ef);

Function

Set 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.