Hello,
I am running the Louvain algorithm and both algo.louvain.stream
and algo.beta.louvain.stream
are returning the same error on directionality:
CALL algo.louvain.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',
weightProperty: 'weight',
seedProperty: 'louvain_coauthors_label',
includeIntermediateCommunities: true
}) YIELD nodeId, community, communities
RETURN algo.asNode(nodeId).name as name, community, communities
ORDER BY name ASC
where is the best place to specify the directionality - in the cypher projection MATCH (n)--(m:alias)
or setting the configuration of the algorithm right : direction: 'BOTH'
. In any case, I had no luck running either of the commands and get the following error:
Neo.ClientError.Procedure.ProcedureCallFailed
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure `algo.beta.louvain.stream`: Caused by: java.lang.IllegalArgumentException: Incompatible directions between loaded graph and requested compute direction. Load direction: 'OUTGOING' Compute direction: 'BOTH'
Please help.
Thanks,
Lavanya