cypher获取相同节点之间的关系,但失去了一些关系

时间:2013-07-10 01:02:50

标签: neo4j cypher

数据集:
neo4j-sh(?)$ START n = node(*)MATCH n- [r] -m RETURN n,r,m;
==> + --------------------------------------------- +
==> | n | r | m |
==> + --------------------------------------------- +
==> |节点[1] {} | (2) - [1:KNOWS] - GT;(1)|节点[2] {} |
==> |节点[1] {} | (3) - [2:知识] - >(1)|节点[3] {} |
==> |节点[2] {} | (2) - [1:知识] - >(1)|节点[1] {} |
==> |节点[2] {} | (3) - [0:知道] - >(2)|节点[3] {} |
==> |节点[3] {} | (3) - [0:知道] - >(2)|节点[2] {} |
==> |节点[3] {} | (3) - [2:知识] - >(1)|节点[1] {} |
==> + --------------------------------------------- +
==> 6排
==>
==> 0毫秒

密码查询: neo4j-sh(0)$ start x = node(1,2,3),y = node(1,2,3)match x- [r] -y return id(x),id(y)order by id (x)desc;
    ==> + --------------- +
    ==> | id(x)| id(y)|
    ==> + --------------- +
    ==> | 1 | 2 |
    ==> | 1 | 3 |
    ==> | 2 | 1 |
    ==> | 3 | 1 |
    ==> + --------------- +
    ==> 4行

实际上,2和3是相互关联的,为什么没有返回;
如何获得回报?
感谢

网址:http://console.neo4j.org/?id=qwdh4p

0 个答案:

没有答案