图引擎服务 GES-执行子图算法:请求示例

时间:2025-03-14 10:08:25

请求示例

在生成的子图上执行特定算法,算法名称为connected_component,子图生成器类型为filtered。

POST  http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/subgraphs/action?action_id=execute-algorithm
 { 
  "algorithmName":"connected_component",
"subgraphCreator": {
        "name": "filtered",
        "parameters": {
            "edge_filter": {
                "property_filter": {
                    "leftvalue": {
                        "label_name": "labelName"
                    },
                    "predicate": "=",
                    "rightvalue": {
                        "value": "PHYSICAL_LINK"
                    }
                }
            }
        }
   },
 "parameters":{ 
         "num_thread":4 
  } 
 }
support.huaweicloud.com/api-ges/ges_03_0240.html