Yes, but I don't know the exact paths. Those were just examples. And the
depth may be higher than 10. So I can't hardcode it into the query.
On Nov 30, 2011 6:33 PM, "Andres Taylor" <andres.tay...@neotechnology.com>
wrote:

> Hey there,
>
> That looks like a straight forward pattern matching problem, right?
>
> START c=node(1)
> MATCH a-->b-->c, d-->c, d-->b-->c, e-->f-->c
> RETURN a,d,e
>
> This is assuming that you have the node id of c. If not, read up how you do
> an index start point.
>
> Does that help?
>
> Andrés
>
>
> On Wed, Nov 30, 2011 at 7:48 AM, dnagir <dna...@gmail.com> wrote:
>
> > Hi,
> >
> > How can I find all the nodes that "start a path"
> >
> > So that I start at node "c" and paths
> > "a->b->c",
> > "d->c",
> > "d->b->c",
> > "e->f->c"
> > I want to retrieve nodes "a", "d" and "e".
> >
> >
> >
> > --
> > 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-tp3547480p3547480.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
> >
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to