On Sun, Feb 20, 2011 at 7:04 PM, Marko Rodriguez <okramma...@gmail.com>wrote:

> Hi,
>
> > Traversal.description()
> > .depthFirst()
> > .relationships(RelationshipTypes.CREATED, Direction.BOTH)
> > .traverse(developer).nodes()
>
> To be clear, a co-creator is someone is who has created the same things as
> you and who is not you. Thus, you need to go outgoing CREATED, then incoming
> CREATED, then you need to make sure that the vertex you land at is not the
> one you left from -- thus, you need to filter the originating vertex.
>

The easiest way to do that in this case is by adding:

.uniqueness(Uniqueness.NODE_PATH)

Cheers,
-- 
Tobias Ivarsson <tobias.ivars...@neotechnology.com>
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to