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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -