Cypher: Relationship functions missing #85

Closed
lassewesth opened this Issue Nov 12, 2012 · 13 comments

Projects

None yet

9 participants

@lassewesth
Neo4j member

@systay: 'We need functions that can return start node from a relationship. It would allow for checking relationship directions in Cypher:

START a=node(*)
MATCH a-[r]-()
RETURN a,r, endNode(r) as startNode

'

@lassewesth
Neo4j member

valueCount: 1
strings:

@lassewesth
Neo4j member

@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 ?

@lassewesth
Neo4j member

@aseemk: +1! =)

@lassewesth
Neo4j member

@aseemk: The pictoral representation would be awesome. Understandable if it's not feasible.

@dmontag
Neo4j member

+1 this feature.

@dmore

+1

@adama2000

Such functions would be useful for me too.

@Garbash

+1

@squirrelsama

+1! This is especially important to me for shortest path calculations

@venatir

+3 (I have more friends who are too lazy to login)

@systay systay closed this Jun 19, 2013
@venatir

Thank you guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment