更新时间:2025-12-19 GMT+08:00
k跳算法(k_hop)(1.0.0) - Khop
参数 | 是否必选 | 类型 | 说明 |
|---|---|---|---|
k | 是 | Integer | 跳数,取值范围[1,100]。 |
num_thread | 否 | Integer | 并发线程数。范围为[1,40],小于1会自动置为1,大于40则自动置为40。默认值为4。 |
source | 是 | String | 节点的ID。 |
mode | 否 | String | 方向,取值如下:
默认值为OUT。 |
statistics | 否 | Boolean | 是否仅返回邻居数统计结果,取值为true或false,默认值为false。 |
参数 | 类型 | 说明 |
|---|---|---|
vertices | List | k跳内的节点id,格式: [vertexId,...], 其中,vertexId:string类型 |
source | String | 起点id。 |
k | Integer | 跳数。 |
k_hop_neighbors | Integer | k跳内的节点个数(不包含起点)。 |
父主题:算法API参数参考

