Mmh, if you have two different bound variables n and z, shouldn't n automagically be different from z? Got a test case for this where n=z?
Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Tue, Nov 22, 2011 at 5:16 PM, Vinicius Carvalho <java.vinic...@gmail.com> wrote: > Hi there, really beginner query, almost ashamed :) > > 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? > > Regards > _______________________________________________ > 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