我想使用java中的gremlin查询和过滤titan中具有超过500个向外边缘的所有顶点...我该怎么做?我已经开始如下
pipe=pipe.start(graph.getVertices());
You then need a filter function
p.start(
g.getVertices()
.filter(new PipeFunction<Vertex,Boolean>() {
public Boolean compute(Vertex v) {
// write your logic here to count edges on the vertex and
// return true if over 500 and false otherwise
}));
Using GremlinPipeline in Java is described more here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.