Perhaps you can say something about your graph structure? Do you have loops? You might consider setting a uniqueness constraint on the traverser.
It will try to traverse to the end of the graph now. Which might result in many many paths. (michael <http://twitter.com/mesirii>)-[:SUPPORTS]->(*YOU*)-[:USE]->(Neo4j<http://neo4j.org/> ) Learn Online <http://neo4j.org/learn/online_course>, Offline<http://www.neo4j.org/events> or Read a Book <http://graphdatabases.com/> (in Deutsch<http://bit.ly/das-buch> ) We're trading T-shirts for cool Graph Models <http://bit.ly/graphgist> On Fri, Apr 18, 2014 at 11:11 PM, TC <[email protected]> wrote: > 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 > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
