Syntax Error

(DKumar) #1

Syntax Error at ORDER BY clause ->

https://neo4j.com/docs/graph-algorithms/current/algorithms/degree-centrality/#algorithms-degree-syntax

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
0 Likes

(Michael Hunger) made this topic public #2
0 Likes

(Michael Hunger) #4

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

0 Likes