[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.

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

2010-07-08 Thread Java Programmer
per word, don't use getSingleRelationship, but loop over getRelationships(). If you move to a category tree (nested categories), then create a new traverser inside the loop of the outer one. On Thu, Jul 8, 2010 at 12:47 PM, Java Programmer jprogrami...@gmail.comwrote: Hello, I have two nodes