Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-02-2019 10:53 AM
What is the maxDepth
parameter of algo.kShortestPaths
?
Can this parameter be used to make the algorithm more efficient by not searching beyond some depth? Depth of what?
For example, after determining the shortest path, can this parameter be used to constrain the maximum number of nodes in a path?
03-03-2019 04:47 AM
Yes, that's the max length, i.e. if a path has reached that lenght but then end node not reached that path will be aborted.
03-03-2019 07:20 AM
I was hoping that's what it meant, but it didn't behave the way I expected. It seems it's controlling some other algorithm feature.
Please see the comments in Stackoverflow question "Implementing Dijkstra's algorithm in Neo4j with max hops".
All the sessions of the conference are now available online