图引擎服务 GES-添加边(2.1.2):请求示例

时间:2025-01-26 10:42:34

请求示例

添加边,source点名称为Lily,target点名称为Rocky,边的标签名为rate。

POST /ges/v1.0/{project_id}/graphs/{graph_name}/edges{    "source": "Lily",    "target": "Rocky",    "label": "rate",    "properties": {        "Score": [            5        ],        "Datetime": [            "2018-01-01 20:30:05"        ]    },    "parallelEdge": {        "action": "override",        "ignoreLabel": true,        "targetProperties": [            {                "label": "rate",                "properties": [                    "Datetime"                ]            },            {                "label": "superclassOf",                "properties": [                    "popularity"                ]            }        ]    }}

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

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