I've used neo4j-mazerunner to analyze strongly_connected_components relationship on my graph. The process has ended and now I got the strongly_connected_components property on my nodes.
I have used the following query to get rows of nodes distinct nodes:
MATCH (n) WHERE has(n.strongly_connected_components)
RETURN DISTINCT "node" as element, n.strongly_connected_components
AS strongly_connected_components
LIMIT 25 UNION ALL MATCH ()-[r]-()
WHERE has(r.strongly_connected_components)
RETURN DISTINCT "relationship" AS element, r.strongly_connected_components
AS strongly_connected_components LIMIT 25
I'm not sure how to cypher query the graph in order to visualize the generated clusters.
Any help would be appericiated.
RETURN DISTINCT "node" as element, ...
will always return the string "node" as the value of theelement
column in your results -- this is probably not what you intended. Also, the sub-query after theUNION
clause should never match anything, since mazerunner only adds thestrongly_connected_components
property to nodes. – cybersam