Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-24-2018 03:14 AM
Hey everyoe ,
I am using this query to show closeness :
MATCH (a:Attrib)
WITH collect(a) AS Attributaires
CALL apoc.algo.closeness(['SIMILARITY'],Attributaires,'BOTH') YIELD a , score
RETURN a, score
ORDER BY score DESC
but I am getting this error :
Solved! Go to Solution.
09-24-2018 05:04 AM
For future you could also try out the algorithms from the Graph Algorithms library - https://neo4j.com/docs/graph-algorithms/current/algorithms/closeness-centrality/
This can be added as a plugin (similar to APOC) and has parallel versions of a bunch of different algorithms.
09-24-2018 03:18 AM
you need to use YIELD node, score
- and not a
here. The identifiers you can use in YIELD
are predefined by the procedure. See APOC manual for this.
09-24-2018 04:09 AM
yes it works when I change "a" with "node" ! thanks Stefan 🙂
09-24-2018 05:04 AM
For future you could also try out the algorithms from the Graph Algorithms library - https://neo4j.com/docs/graph-algorithms/current/algorithms/closeness-centrality/
This can be added as a plugin (similar to APOC) and has parallel versions of a bunch of different algorithms.
All the sessions of the conference are now available online