cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Pause, resolving how to handle anonymous content

Graph algorithms Louvain Issue

stu_v_kerr
Node Clone

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.