Total Pageviews

2018/09/12

[Neo4j] How to find nodes and its relationships from existing graph

目前的 graph 如下



假設我要找出大雄與其他人之間的關係,Cypher 語法如下:
match (m) where m.name="大雄"
match (m)-[r]-(n)
with m, n, type(r) as relationships
return m.name, n.name, relationships


於 Neo4j Browser 執行結果:

No comments: