删除

删除点数据

根据主键删除

DeleteNodeRequest request = new DeleteNodeRequest(id);
client.deleteNode(request);

Filter匹配删除

DeleteNodeRequest request = new DeleteNodeRequest();
request.setFilter(Filter.newEqBuilder("name").eq("sample").build());
client.deleteNode(request);

删除边数据

根据主键删除

DeleteEdgeRequest request = new DeleteEdgeRequest(id);
client.deleteEdge(request);

Filter匹配删除

DeleteEdgeRequest request = new DeleteEdgeRequest();
request.setFilter(Filter.newEqBuilder("rank").eq("240").build());
client.deleteEdge(request);