图引擎服务 GES-时序路径分析(Temporal Paths):请求参数

时间:2024-01-25 20:06:42

请求参数

表2 Body参数说明

参数

是否必选

类型

说明

algorithmName

String

算法名字。

parameters

parameters Object

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

dynamicRange

dynamicRange Object

动态分析时间参数。

表3 parameters

参数

是否必选

类型

说明

source

String

起点id。

targets

String

终点id集合。csv格式,ID之间以英文逗号分隔,例如:“Alice,Nana”。个数不大于100000,默认值为1000。

directed

Boolean

是否考虑边的方向,取值为true 或false,默认值为false。

k

Integer

最大深度,取值范围在1-100,包括1和100,默认值为3。

strategy

String

运行的算法策略。取值为:shortest,foremost,fastest。

(注:fastest暂不支持)

默认值为shortest。

  • shortest:运行shortest temporal paths算法,返回距离最短的时序路径
  • foremost:运行foremost temporal paths算法,返回尽可能早的到达目标节点的时序路径
  • fastest:运行fastest temporal paths算法,返回耗费时间最短的时序路径
表4 dynamicRange

参数

是否必选

类型

说明

start

Date/ Integer

动态分析起始时间。

end

Date/ Integer

动态分析终止时间 。

time_props

time_props Object

动态分析的时间属性定义。

表5 time_props

参数

是否必选

类型

说明

stime

String

开始时间属性名称。

etime

String

结束时间属性名称 。

support.huaweicloud.com/api-ges/ges_03_0383.html