stu_v_kerr
(Stuart Kerr)
October 9, 2018, 5:54am
1
Previously working Louvain queries no longer work on new graph algo version 3.4.7.0 (Using Neo4j version 3.4.0.1). Here is the error:
Neo.ClientError.Statement.SyntaxError: Unknown procedure output: community
(line 7, column 14 (offset: 257)) "YIELD nodeId,community"
Doesn't seem to understand how to yield 'community' anymore.....
You can check the signature of procedures and functions to see what variables can be yielded:
call dbms.procedures() yield name, signature
where name contains 'louvain'
return *
Looking at the signature for algo.louvain.stream(), it looks like 'communities' is the variable yielded.
Or just CALL algo.list('louvain')
This is a regression, the "community" field should still be there.
stu_v_kerr
(Stuart Kerr)
October 10, 2018, 1:16am
5
"algo.louvain.stream" "algo.louvain.stream(label = :: STRING?, relationship = :: STRING?, config = {} :: MAP?) :: (nodeId :: INTEGER?, communities :: LIST? OF INTEGER?)"
Actually, it now appears to be "communities" instead of previous "community"
1 Like
We'll change it to be backwards compatible.
neo4j-contrib:3.4
← mneedham:3.4-louvain-backward
opened 08:20AM - 10 Oct 18 UTC
Fixing backwards compatibility things as described in https://github.com/neo4j-c… ontrib/neo4j-graph-algorithms/issues/736