- I get the following error when I use the harmonic centrality algorithm:
CALL algo.closeness.harmonic.stream(
'MATCH (n:alias) RETURN id(n) AS id',
"MATCH (n)-->(m:alias) RETURN id(n) AS source, id(m) AS target",
{graph: "cypher", direction: 'BOTH'})
YIELD nodeId, centrality
WITH algo.asNode(nodeId) AS node, centrality AS centrality_h_stream
SET node.harmonic_centrality = centrality_h_stream
Neo.ClientError.Procedure.ProcedureCallFailed
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure algo.closeness.harmonic.stream
: Caused by: java.lang.NullPointerException
I added the lines the following lines in neo4j.conf file with no luck
"dbms.security.procedures.unrestricted=apoc., algo. dbms.security.procedures.whitelist=apoc., algo."
- Also I am wondering if dropping "direction: 'BOTH'" would change the results - it does not seem to make a difference when I a similar algorithm :
CALL algo.closeness.stream(
'MATCH (n:alias) RETURN id(n) AS id',
"MATCH (n)-->(m:alias) RETURN id(n) AS source, id(m) AS target",
{graph: "cypher", direction: 'BOTH'})
YIELD nodeId, centrality
WITH algo.asNode(nodeId) AS node, centrality AS centrality_stream
SET node.centrality = centrality_stream