Closed umuzammil closed 5 years ago
hey guys, any updates?
It should be optional as described. I will open a PR.
Thanks!
In https://github.com/neo4j-contrib/neo4j-graph-algorithms/pull/869 we moved the weight property into the params list. However, this breaks the procedure API for existing users. There is still a fix contained in https://github.com/neo4j-contrib/neo4j-graph-algorithms/commit/2806408c9120b4675451a362e4e04f3aa3b17ac7 that allows you to just specify source
and target
without weight property and params. Hope that helps.
Tested in version 3.5.4.3. Works fine. Thanks!!
Doc: https://neo4j.com/docs/graph-algorithms/3.5/algorithms/shortest-path/#algorithms-shortest-path-syntax lists weightProperty as optional, but f omitted, it throws the following exception.
Reproduced locally on the movies database Neo4j Enterprise 3.5.3 Algo 3.5.3.1
results in:
whereas executing with weight as:
gives a result of nodeCount = 5. Is the documentation incorrect or the algo behaviour?