Hi, I'm running a large graph node. 265214 nodes and 420045 edges.I'm using the traversal example from neo4j doc.
public String knowsTraverserforward( Node node )
{
String output = "";
// START SNIPPET: knowslikestraverser
for ( Path position : db.traversalDescription()
.breadthFirst()
.relationships( Rels.KNOWS, Direction.OUTGOING )
// .evaluator( Evaluators.toDepth(10) )
.traverse( node ) )
{
output += position + "\n";
}
// END SNIPPET: knowslikestraverser
return output;
}
while i when i set the depth like 10, it take little time to output
now i delete the depth assumption, it take so long time to produce the output and didn't give me valid output yet.
i using eclipse on windows to do this code.
is there something with my attempt?
Thanks