Deletion

Delete Node

  • Delete by node id:
DeleteNodeRequest request = new DeleteNodeRequest(id);
client.deleteNode(request);
  • Delete by node filter:
DeleteNodeRequest request = new DeleteNodeRequest();
request.setFilter(Filter.newEqBuilder("name").eq("sample").build());
client.deleteNode(request);

Delete Edge

  • Delete by edge id:
DeleteEdgeRequest request = new DeleteEdgeRequest(id);
client.deleteEdge(request);
  • Delete by edge filter:
DeleteEdgeRequest request = new DeleteEdgeRequest();
request.setFilter(Filter.newEqBuilder("rank").eq("240").build());
client.deleteEdge(request);