cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Syntax Error

Syntax Error at ORDER BY clause ->

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

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 REPLY 1

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