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

查询边详情

您可以使用GES提供的接口查询边详情,示例代码如下:

 public static void getEdge(GraphClient graphClient) throws ApiException
{
 EdgeDetailReq req = new EdgeDetailReq();
 req.setSource("46");//此处需要用户替换为实际的点ID
 req.setTarget("38");//此处需要用户替换为实际的点ID
 req.setIndex(0);
 EdgeDetailResult edgeDetailResult = graphClient.getEdge(req);
 System.out.print(edgeDetailResult);
}