Updated on 2022-04-24 GMT+08:00

Querying Edge Details

You can use a specific API provided by GES to query edge details. The sample code is as follows:

 public static void getEdge(GraphClient graphClient) throws ApiException
{
 EdgeDetailReq req = new EdgeDetailReq();
 req.setSource("46");//Replace with the actual vertex ID.
 req.setTarget("38");//Replace with the actual vertex ID.
 req.setIndex(0);
 EdgeDetailResult edgeDetailResult = graphClient.getEdge(req);
 System.out.print(edgeDetailResult);
}