I've been looking at the Gremlin graph language, and it appears very powerful. However, whilst running through what it can do to evaluate it against requirements, I came across a case that I can't seem to complete.
Assuming Gremlin is started, and using its example database:
gremlin> g = TinkerGraphFactory.createTinkerGraph()
...
gremlin> g.V.out('knows')
==>v[2]
==>v[4]
So this shows vertices that have an edge of 'knows'.
However, I want to find vertices that do not have edges of 'knows'. Something like:
gremlin> g.V.outNot('knows')
==>v[3]
==>v[5]
==>v[6]
How do I find these vertices?
(Edited to make the output correct)