book
book copied to clipboard
Failed to invoke procedure `gds.alpha.shortestPath.astar.stream`: Caused by: java.lang.NullPointerException
When submitting the query for A* shortest path on page 59, I get a NullPointerException
.
MATCH (source:Place {id: "Den Haag"}), (destination:Place {id: "London"})
CALL gds.alpha.shortestPath.astar.stream({
startNode: source,
endNode: destination,
nodeProjection: "*",
relationshipProjection: {
all: {
type: "*",
properties: "distance",
orientation: "UNDIRECTED"
}
},
relationshipWeightProperty: "distance",
propertyKeyLat: "latitude",
propertyKeyLon: "longitude"
})
YIELD nodeId, cost
RETURN gds.util.asNode(nodeId).id AS place, cost;
The same here
Is the problem solved? How to fix it
Have the same problem. It appear only if a path is found. If I change start or end by an nonexistent entry, there is no error (but no result for sure !)