MATCH (somenode)-->(neighbor)-[r]->(neighborsNeighbor)<--(somenode)
RETURN r
Get Subgraph for Neo4j embedded graph database using Java
Question
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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow