Re: [Neo4j] Is it possible to count common nodes when traversing?

2010-07-08 Thread Java Programmer
} > (perhaps you need to change the direction and call getStartNode() depending > on what you use for direction) > > Now you can also increase the depth for looking for less similar words, > since the traverser only follows the SIMILAR type). Also, if you have more > than one categ

[Neo4j] Is it possible to count common nodes when traversing?

2010-07-08 Thread Java Programmer
Hello, I have two nodes [Word] and [Category], each [Word] can have a [Category], and different [Word] can share same [Category]. [Word] to another [Word] has relationship SIMILAR, [Word] to [Category] has relationship Category. I need to count how many Words is in Category, up to given depth. Whe