两点之间的所有边如何一次性全部查出来?

image
已经按照上图把数据写入了


尝试了两种方法还是不能把两点之间的三条边一次性查出来,请问有什么办法可以实现吗?

Match 是可以的,你插入的是 player100,match 的条件是 player102 吧。

(root@nebula) [nba]> match (v) - [e:serve] - (v1) where id(v) == "Blake Griffin" and id (v1) == "Clippers" return e
+------------------------------------------------------------------------------------+
| e                                                                                  |
+------------------------------------------------------------------------------------+
| [:serve "Blake Griffin"->"Clippers" @0 {end_year: 2018, start_year: 2009}]         |
+------------------------------------------------------------------------------------+
| [:serve "Blake Griffin"->"Clippers" @3 {end_year: __NULL__, start_year: __NULL__}] |
+------------------------------------------------------------------------------------+
| [:serve "Blake Griffin"->"Clippers" @2 {end_year: 2018, start_year: __NULL__}]     |
+------------------------------------------------------------------------------------+
2赞

GO FROM “player100” OVER serve WHERE serve._rank> -1 and serve._dst==‘team204’ YIELD serve._src, serve._dst, serve._rank AS Rank;
@HarrisChu 谢谢,果然写错了,go from 也可以 。看来这个问题很简单啊
GO FROM “player100” OVER serve WHERE serve._dst==‘team204’ YIELD serve._src, serve._dst, serve._rank AS Rank;

image
你不是试过吗

浙ICP备20010487号