Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gremlin> g = TinkerFactory.createModern().traversal()
- ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
- gremlin> g.V().hasLabel('software').in().
- ......1> groupCount().
- ......2> by('name').
- ......3> unfold().
- ......4> filter(select(values).unfold().is(gt(1)))
- ==>josh=2
- g.V().hasLabel('article').
- groupCount()
- by('url').
- unfold().
- filter(select(values).unfold().is(gt(1)))
Add Comment
Please, Sign In to add comment