SaveGraph
接口定义
int SaveGraph(const char *path) const;
接口用途
单进程保存图索引到指定路径。
参数说明
参数名称  | 
描述  | 
数据类型  | 
取值范围  | 
|---|---|---|---|
path  | 
图索引的保存路径。  | 
const char *  | 
取值长度小于199字符。  | 
返回值
数据类型  | 
说明  | 
|---|---|
int  | 
若参数超出取值范围或存在保存路径错误等IO问题时返回-1;调用Add接口前调用该接口时返回-1;调用BuildSearcher或Load/Deserialize/LoadGraph后调用该接口时返回-1;否则返回0。  | 
父主题: C++