On 30/11/2011, at 9:46 PM, Andres Taylor [via Neo4j Community Discussions] 
wrote:

> Well, this query would also return 'b' in the example you shared above.

You're right. Too late here already. Can't think clearly.

> I think we need something that says "follow this path until you can't follow 
> it any more". If you're working with a B-tree, you should be able to say 
> "given this sub-root, give me all leafs".

I don't need all leaves. It's a bit the other way around. I need the root of 
the tree.


> Something like: 
> 
> START c = node(17) 
> MATCH x<-[*END]-c 
> RETURN x 
> I really don't like this syntax, but I think the information belongs in 
> there somewhere... 

I actually don't mind this syntax. It's looks like the right place and clearly 
shows the intent.



--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/How-to-return-the-start-nodes-of-all-the-paths-with-Cypher-tp3547480p3547928.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to