That works nice :)

Tks

On Tue, Nov 22, 2011 at 4:21 PM, Tero Paananen <tpp.paana...@gmail.com>wrote:

> > Is it possible to filter the results to skip the start node?
> >
> > For example, using the koans dataset, find the enemy of my enemy (should
> be
> > my friends :) )
> >
> > START n=node(1)
> > MATCH (n)-[:ENEMY_OF]->(x)-[:ENEMY_OF]->(z)
> > return distinct z
> >
> > I understand that "The doctor" node 1, should appear as it is indeed an
> > enemy of one of his enemies, but is it possible to filter?
>
> This may or may not be the best way to do this, but I have this sort
> of stuff in some of my queries for the same purpose:
>
> ... WHERE ID(n) != ID(z) ...
>
> -TPP
> _______________________________________________
> 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