Finding vertices with no specific incoming edge

23 views
Skip to first unread message

Fairuz WAN ISMAIL

unread,
Feb 1, 2015, 1:55:40 PM2/1/15
to clojure-...@googlegroups.com

Hi,

With below data, I'm trying to find all nodes that are connected to DRAFT and doesn't have incoming has-draft edge. Which in this case, it would be node 7 (Lorem).

I managed to get it with Gremlin with below command:

g.query().has("label", "Restaurant").vertices()._().as('x').out('has-status').has('name', 'DRAFT').back('x').filter{!it.inE('has-draft').hasNext()}.map

But I have problems to convert this Gremlin expression into clojure/ogre. What "!" and "hasNext" can be converted into?

Thanks.

Data:


Reply all
Reply to author
Forward
0 new messages