图引擎服务 GES-全对最短路径(all_pairs_shortest_paths):请求示例

时间:2024-05-25 09:14:00

请求示例

POST http://{SERVER_URL}/ges/v1.0/{project_id}/hyg/{graph_name}/algorithm
 { 
  "algorithmName":"all_pairs_shortest_paths", 
  "parameters":{ 
         "sources":”1,2”, 
         "targets":”5,6”,
         "directed":true, 
         "cutoff":3,
         "path_limit":10000
     } 
 }

SERVER_URL:图的访问地址,取值请参考业务面API使用限制

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