I was curious as to how neo4j interprets the following query and what is actually returned.
MATCH path=(p1:Student)-[f:Friends]->(p2:Student)-[f2:Friends]->(p3:Student)
RETURN p1.studentID, p2.StudentId, p3.StudentId
I see this as returning all nodes in a chain that link to another,to another and to another. However what if the data contains chains with 4 nodes. Does this query: 1) return nothing 2) return the first 3 nodes of the chain or 3) return the last 3 nodes in the chain of 4?
Thanks in advance, only just started using cypher and couldn't find anything about this.