Hi, I'm currently coding my own Traverser. The objective is to perform a type of random walk on the graph and count the number of visited nodes.
To code the random walk part I create my own Evaluation function and pruned the graph as desired. To count I do the following: long score = 0; for (Node currentNode : traversal.traverse( nodeList ).nodes()) { score += 1; } However, this doesn't always work as I would like and I was therefore wondering if there was a way to keep track of how many nodes we INCLUDE in the Evaluation function? For instance I have a global score variable, and in the Evaluation function before I perform "return INCLUDE_AND_CONTINUE" or "return INCLUDE_AND_PRUNE" I increment score Thanks, -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.