neo4j-contrib / neo4j-graph-algorithms

Efficient Graph Algorithms for Neo4j
https://github.com/neo4j/graph-data-science/
GNU General Public License v3.0
772 stars 194 forks source link

Syntax Error - Weighted Degree Centrality algorithm sample #890

Open dominicvivek06 opened 5 years ago

dominicvivek06 commented 5 years ago

Syntax Error at ORDER BY clause -> https://neo4j.com/docs/graph-algorithms/current/algorithms/degree-centrality/#algorithms-degree-syntax

Instead of followers it should be weightedFollowers

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