All paths between two nodes neo4j - incorrect answer (from neo4j)
问题 I want to get all path between two nodes with the relation "->" between them. I ask my DB using query (Cypher) like that: START a=node(27), b=node(0) MATCH p=b<-[*]-a RETURN p In Neo4j visualization I get this: Cypher query visualization I want to get list of 3 path: 27 -> 81 -> .... -> 0 27 -> 67 -> .... -> 0 27 -> 24 -> .... -> 0 but in the result I have got 6 paths (instead of 3). I want to figure out why. 回答1: This happens because the query includes the 0 length paths starting from 'a'.