cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Graph algorithms Louvain Issue

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.....

5 REPLIES 5

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.

"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"

We'll change it to be backwards compatible.