0

数据集:
neo4j-sh (?)$ START n = node(*) MATCH n-[r]-m RETURN n,r,m;
==> +---------------------------------------------+
==> | n | r | 米 |
==> +---------------------------------------------+
==> | 节点[1]{} | (2)-[1:知道]->(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)按 id(x) desc 排序;
==> +----------------+
==> | id(x) | id(y) |
==> +----------------+
==> | 1 | 2 |
==> | 1 | 3 |
==> | 2 | 1 |
==> | 3 | 1 |
==> +----------------+
==> 4 行

事实上,2和3是联系在一起的,为什么没有回报;
如何获得回报?
谢谢

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

4

0 回答 0