Finding vertices with no specific incoming edge

已查看 23 次
跳至第一个未读帖子

Fairuz WAN ISMAIL

未读,
2015年2月1日 13:55:402015/2/1
收件人 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:


回复全部
回复作者
转发
0 个新帖子