[英]Get the all the nodes connected to a specific node with relationship
I want to get the all the nodes with relationship(edges) that are connected to this kim.horne
我想获取与此kim.horne
连接的所有具有关系(边)的节点
I tried to write a query:我试着写一个查询:
MATCH p=(c{name:'kim.horne'})-[r:REL]-(d)
RETURN p
but this give me the result as shown below:但这给了我如下所示的结果:
You can see I am getting the edge between eclipse and doughlas
, susan and nick
etc which I don't want.你可以看到我在eclipse and doughlas
、 susan and nick
等之间取得了优势,这是我不想要的。 I am more interested to have edges that are either coming to or going from the node kim.horne
我对来自节点kim.horne
的边更感兴趣
This is a Neo4j Browser functionality.这是 Neo4j 浏览器功能。 Disable "connect result nodes" in neo4j browser and you will only get the relationships from your query.在 neo4j 浏览器中禁用“连接结果节点”,您将只能从查询中获取关系。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.