Open dominicvivek06 opened 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 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
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