I want to get the first hop neighbour nodes of some given set of nodes. After getting all the neighbour nodes, i want to get all the relationships existing between these neighbour nodes. I am not able to write cypher query for this.

有帮助吗?

解决方案

MATCH (somenode)-->(neighbor)-[r]->(neighborsNeighbor)<--(somenode)
RETURN r
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top