图引擎服务 GES-带过滤的n_paths算法(filtered_n_paths)(2.2.22):请求示例

时间:2023-11-01 16:25:44

请求示例

带过滤的n_paths算法,算法名称是filtered_n_paths,跳数是6,路径数是100,起始点是111,终点是56。

POST http://IP:PORT/ges/v1.0/{project_id}/graphs/{graph_name}/action?action_id=execute-algorithm{    "algorithmName": "filtered_n_paths",    "filters": [    {        "edge_filter":        {            "property_filter":            {                "leftvalue":                {                    "label_name": "labelName"                },                "predicate": "=",                "rightvalue":                {                    "value": "default"                }            }        }    }],    "parameters":    {        "k": 6,        "n": 100,        "source": "111",        "target": "56"    }}
support.huaweicloud.com/api-ges/ges_03_0239.html