Syntax Error

Syntax Error at ORDER BY clause ->

5.7.4. Weighted Degree Centrality algorithm sample

CALL algo.degree.stream("User", "FOLLOWS", {direction: "incoming", weightProperty: "score"})
YIELD nodeId, score
RETURN algo.asNode(nodeId).id AS name, score AS weightedFollowers
ORDER BY followers DESC
CALL algo.degree.stream("User", "FOLLOWS", {direction: "incoming", weightProperty: "score"})
YIELD nodeId, score
RETURN algo.asNode(nodeId).id AS name, score AS weightedFollowers
ORDER BY weightedFollowers DESC
1 Like

Thanks a lot for your feedback, in general it's best to share that as issue on the github repository

https://github.com/neo4j-contrib/neo4j-graph-algorithms/issues/new