Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-14-2022 11:27 AM
Variable `row` not defined (line 3, column 7 (offset: 58)) "where row.source= 'aniesbaswedan'" ^
08-14-2022 11:47 AM
You could filter the nodes post-processing to return only the ones you want. Assuming the ‘source’ is a property of the nodes you projected, you can filters those from your result with the following query:
08-14-2022 12:52 PM
IF filter nodes before processing, how? I tried this way, error
Invalid input '{': expected "+" or "-" (line 1, column 38 (offset: 37)) "CALL gds.betweenness.stream('mysna', {row.source = 'aniesbaswedan'})"
08-14-2022 04:44 PM
I think you can achieve it by using cypher projection. You can specify what nodes you want projected through a cypher query, allowing you to filter what gets projected.
https://neo4j.com/docs/graph-data-science/current/graph-project-cypher/
08-14-2022 12:00 PM
thank you,
this can ran
CALL gds.degree.stream('mysna')
YIELD nodeId, score
WHERE gds.util.asNode(nodeId).name = 'aniesbaswedan'
RETURN gds.util.asNode(nodeId).name AS name, score AS followers
ORDER BY followers DESC, name DESC limit 100
08-14-2022 08:18 PM
Sorry, there was a slight syntax error in my earlier post. It was missing an 'as' clause to bind the 'node' variable.
CALL gds.degree.stream('mysna') YIELD nodeId, score
WITH gds.util.asNode(nodeId) as node, score AS followers
WHERE node.source = 'aniesbaswedan'
RETURN node.name as name, followers
ORDER BY followers DESC, name DESC limit 100
All the sessions of the conference are now available online