Hello,
I have a co-authorship network on alias nodes
which have many components (see attached). There are other nodes and edges in the graph. The number of alias nodes is 100000.My attempt to find betweenness scores for the nodes returned 0 for all nodes.
CALL algo.betweenness.stream('alias','co_authors',{direction:'BOTH'})
YIELD nodeId, centrality
WITH algo.asNode(nodeId) AS node, centrality
SET node.betweenness_coauthors = centrality
When I attempted to use graph projections, I get a null pointer exception:
CALL algo.betweenness.stream('MATCH (n:alias) RETURN id(n) AS id',
'MATCH (n)-[:co_authors]-(m:alias) RETURN id(n) AS source, id(m) AS target',{graph:'cypher', direction:'BOTH'})
YIELD nodeId, centrality
Neo.ClientError.Procedure.ProcedureCallFailed
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure algo.betweenness.stream
: Caused by: java.lang.NullPointerException
What went wrong?