@systay: 'We need functions that can return start node from a relationship. It would allow for checking relationship directions in Cypher:
RETURN a,r, endNode(r) as startNode
@jexp: Also treating relationships as a short path would be a nice thing.
so one can do nodes(r) so it would be possible to do: head(nodes(r)) or tail(nodes(r)).
What syntax would be good for the relationship-functions? endNode(r), startNode(r), otherNode(r,n)
Or rather something pictoral like r-> or ->r ?
@aseemk: +1! =)
@aseemk: The pictoral representation would be awesome. Understandable if it's not feasible.
+1 this feature.
Such functions would be useful for me too.
+1! This is especially important to me for shortest path calculations
+3 (I have more friends who are too lazy to login)
This has been added to Neo4j 2.0: http://docs.neo4j.org/chunked/snapshot/query-functions-scalar.html#functions-startnode
Thank you guys