Gremlin 如何获取不指向具有特定 id 的节点的节点?

Gremlin how to get nodes that do NOT point to nodes with certain id?

假设在现代图表中从第 1 个人开始。我们如何找到以下内容:

  All nodes that person 1 knows. That have NOT created a software by id 5.
  Result would be person 2.

All nodes that person 1 knows. That have NOT created a software by id 5. Result would be person 2.

gremlin> g.V(1).out('knows').not(out('created').hasId(5))
==>v[2]