StackOverflowError while using Dijkstra from myPlugin

34 views
Skip to first unread message

Eugeny Kozhanov

unread,
Oct 10, 2012, 3:16:20 AM10/10/12
to ne...@googlegroups.com
Hi to all!
I try use Dijkstra from myPlugin, but get error:
{
 
"exception" : "StackOverflowError",
 
"stacktrace" : [ "java.util.LinkedList.addLast(LinkedList.java:181)", "org.neo4j.graphalgo.impl.shortestpath.Util.constructAllPathsToNodeAsNodeLinkedLists(Util.java:230)", "org.neo4j.graphalgo.impl.shortestpath.Util.constructAllPathsToNodeAsNodeLinkedLists(Util.java:209)",
...
}


I call dijkstra via follow script:

 
Dijkstra<Double> pathFinder = new Dijkstra<Double> (0.0, nodeFrom, nodeTo,
 
new RouterCostEvaluator(cost), new DoubleAdder(), new DoubleComparator(), Direction.OUTGOING, drt );
 pathFinder
.limitMaxCostToTraverse( maxCost );
 pathFinder
.getPathsAsNodes();

Why?

Eugeny Kozhanov

unread,
Oct 10, 2012, 3:24:24 AM10/10/12
to ne...@googlegroups.com
pathFinder.limitMaxNodesToTraverse(100000);

- works good
pathFinder.limitMaxNodesToTraverse(1000000);

- get error

Eugeny Kozhanov

unread,
Oct 10, 2012, 4:09:17 AM10/10/12
to ne...@googlegroups.com
Can I use Dijkstra without "pathFinder.limitMaxNodesToTraverse(100000);" ?

Mattias Persson

unread,
Oct 10, 2012, 4:18:08 AM10/10/12
to ne...@googlegroups.com
Could you use the public Dijkstra implementation instead? I.e. org.neo4j.graphalgo.impl.path.Dijkstra, accessible fom GraphAlgoFactory

2012/10/10 Eugeny Kozhanov <vin...@gmail.com>
Can I use Dijkstra without "pathFinder.limitMaxNodesToTraverse(100000);" ?

--
 
 



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

Eugeny Kozhanov

unread,
Oct 10, 2012, 4:49:37 AM10/10/12
to ne...@googlegroups.com
Can this Dijkstra class may return some shortest paths? The findSinglePath  method  return only one path. The findAllPaths method working too long time...

Eugeny Kozhanov

unread,
Oct 10, 2012, 5:05:14 AM10/10/12
to ne...@googlegroups.com
And findSinglePath method is very hard (need more memory and CPU time)...
Reply all
Reply to author
Forward
0 new messages