Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Syntax Error - Weighted Degree Centrality algorithm sample #890

Open
dominicvivek06 opened this issue Apr 14, 2019 · 0 comments
Open

Syntax Error - Weighted Degree Centrality algorithm sample #890

dominicvivek06 opened this issue Apr 14, 2019 · 0 comments
Assignees

Comments

@dominicvivek06
Copy link

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

@mneedham mneedham self-assigned this Apr 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants