neo4j-graph-analytics / book

67 stars 88 forks source link

algo issues with cypher in shortest path #6

Open KimEllis opened 1 year ago

KimEllis commented 1 year ago

I went to run:

MATCH (source:Place {id: "Amsterdam"}), (destination:Place {id: "London"}) CALL algo.shortestPath.stream(source, destination, "distance") YIELD nodeId, cost RETURN algo.getNodeById(nodeId).id AS place, cost

from the cypher info on https://github.com/neo4j-graph-analytics/book/blob/master/scripts/path_finding/shortestpath/shortestpath.cypher for shortest path. I received error: There is no procedure with the name algo.shortestPath.stream registered for this database instance.

I do have gds installed on desktop, and looking here it appears algo shortestpath is maybe deprecated? https://neo4j.com/docs/rest-docs/current/#rest-api-graph-algos