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

查询路径详情

您可以使用GES提供的接口查询路径详情。示例代码如下:
public static void getPathDetail(GraphClient graphClient) throws ApiException 
{
     PathDetailReq pathDetailReq = new PathDetailReq();
     pathDetailReq.setDirected(true);
     List<List<String>> paths = new ArrayList();
     List<String> path1 = new ArrayList();
     path1.add("38");
     path1.add("0");
     List<String> path2 = new ArrayList();
     path2.add("35");
     path2.add("40");
     paths.add(path1);
     paths.add(path2);
     pathDetailReq.setPaths(paths);
     Map<String, Object> result = graphClient.getPathDetail(pathDetailReq);
     System.out.println(MapUtils.map2json(result));
}