更新时间:2022-06-30 GMT+08:00

删除边

您可以使用GES提供的接口删除边。示例代码如下:

public static void deleteEdge(GraphClient graphClient) throws ApiException
{
  DeleteEdgeReq deleteEdgeReq = new DeleteEdgeReq();
  deleteEdgeReq.setSource("Lily");
  deleteEdgeReq.setTarget("Rocky");
  deleteEdgeReq.setIndex(0);
  graphClient.deleteEdge(deleteEdgeReq);
}