Rate This Document
Findability
Accuracy
Completeness
Readability

setEf

API Definition

def setEf(ef: int) -> int

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

The API is encapsulated by the underlying C++ API, which controls the exception throwing.