filter vertices on number of outgoing edges in gremlin titan in java -
i want query , filter vertices more 500 outgoing edges in titan using gremlin in java...how do this?i have started off below
pipe=pipe.start(graph.getvertices());
you need filter function
p.start( g.getvertices() .filter(new pipefunction<vertex,boolean>() { public boolean compute(vertex v) { // write logic here count edges on vertex , // return true if on 500 , false otherwise }));
using gremlinpipeline in java described more here
Comments
Post a Comment