图引擎服务 GES-算法公共参数:请求参数

时间:2025-06-09 09:53:40

请求参数

表1 Body参数说明

参数

是否必选

类型

说明

algorithmName

String

算法名字。

取值范围(以下显示的均为算法实际调用时的名称):

  • pagerank
  • personalrank
  • kcore
  • k_hop
  • shortest_path
  • all_shortest_paths
  • filtered_shortest_path
  • sssp
  • shortest_path_of_vertex_sets
  • n_paths
  • closeness
  • subgraph_matching
  • topicrank
  • label_propagation
  • louvain
  • link_prediction
  • node2vec
  • realtime_recommendation
  • common_neighbors
  • connected_component
  • degree_correlation
  • triangle_count
  • cluster_coefficient
  • common_neighbors_of_vertex_sets
  • all_shortest_paths_of_vertex_sets
  • filtered_circle_detection
  • filtered_all_pairs_shortest_paths
  • filtered_all_shortest_paths
  • filtered_n_paths

parameters

Object

算法参数。详情请参考各算法参数描述。

表2 2.1.7版本新增Body参数说明

参数

是否必选

类型

说明

executionMode

String

  • sync:同步
  • async:异步

默认值为“async”。

支持的算法(以下显示的均为算法实际调用时的名称):

  • k_hop
  • shortest_path
  • all_shortest_paths
  • filtered_shortest_path
  • shortest_path_of_vertex_sets
  • n_paths
  • realtime_recommendation
  • filtered_all_pairs_shortest_paths
  • filtered_all_shortest_paths

offset

Integer

同步结果的偏移量,默认值为“0”。

说明:

executionMode=sync时有效。

支持的算法(以下显示的均为算法实际调用时的名称):

  • k_hop
  • shortest_path
  • all_shortest_paths
  • shortest_path_of_vertex_sets
  • n_paths
  • realtime_recommendation
  • filtered_all_pairs_shortest_paths
  • filtered_all_shortest_paths

limit

Integer

同步结果返回的最大数量,最大值为100000。默认值为“100000”。

说明:

executionMode=sync时有效。

支持的算法(以下显示的均为算法实际调用时的名称):

  • k_hop
  • shortest_path
  • all_shortest_paths
  • shortest_path_of_vertex_sets
  • n_paths
  • realtime_recommendation
  • filtered_all_pairs_shortest_paths
  • filtered_all_shortest_paths
表3 2.2.4版本新增Body参数说明

参数

是否必选

类型

说明

vertex_filter

Object

路径中对节点的过滤条件。

支持的算法(以下显示的均为算法实际调用时的名称):

  • filtered_shortest_path
  • filtered_all_pairs_shortest_paths
  • filtered_all_shortest_paths

具体格式请见 Filtered-query API中的表6

edge_filter

Object

路径中对边(关系)的过滤条件。

支持的算法(以下显示的均为算法实际调用时的名称):

  • filtered_shortest_path
  • filtered_all_pairs_shortest_paths
  • filtered_all_shortest_paths

具体格式请见 Filtered-query API中的表6

filters

Object

过滤条件列表,数组的每个元素分别对应每一层要做的查询和过滤条件。该参数仅适用于带一般过滤条件环路检测(filtered circle detection),具体格式请见filters元素格式

支持的算法:

  • filtered_n_paths
  • filtered_circle_detection
  • topicrank
support.huaweicloud.com/api-ges/ges_03_0076.html
提示

您即将访问非华为云网站,请注意账号财产安全