foo
在 Tinkerpop 中,我想选择不直接连接到属性等于的顶点的顶点bar
例如:
Vertex user1 = graph.addVertex("vid","one");
Vertex user2 = graph.addVertex("vid","two");
Vertex user3 = graph.addVertex("vid","three");
Vertex tag1 = graph.addVertex("tagKey", "tagKey1");
Vertex tag2 = graph.addVertex("tagKey", "tagKey2");
Vertex tag3 = graph.addVertex("tagKey", "tagKey3");
user1.addEdge("user_tag", tag1);
user2.addEdge("user_tag", tag2);
user2.addEdge("user_tag", tag3);
在上面的测试用例中,我想选择所有未连接到值为 的user
标记顶点的顶点。输出应该是 2 个顶点tagKey
tagKey2
user3 , user 1