Updated on 2022-09-14 GMT+08:00

Querying Path Details

You can use a specific API provided by GES to query path details. The sample code is as follows:
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));
}