图引擎服务 GES-子图匹配算法(subgraph matching):请求示例

时间:2024-12-04 09:49:40

请求示例

POST http://{SERVER_URL}/ges/v1.0/{project_id}/hyg/{graph_name}/ algorithm
{
    "algorithmName": "subgraph_matching",
    "parameters": {
        "edges": "1,2\n2,3\n3,4\n5,6\n5,4",
        "vertices": "1,movie\n2,user\n3,user\n4,user\n5,user\n6,user",
        "statistics": "true",
        "directed": "true",
        "n": 55,
        "batch_number": "500"
    }
}

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

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