Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-15-2018 04:55 AM
The aim of this work is knowing how my clusters were made/how the group of nodes which is connected to each other was made . I have contracts and attributes in my graph .
I used this query to have clusters of Attributes(companies) which collaborated together for 10 times at least :
match (n1:attribfxplaf)-[r]-()
with n1.clusterId as clusterId, count(n1) as clusterSize,count(distinct r) as numberOfRels
where clusterSize > 10 AND numberOfRels > 10
match (n2) where n2.clusterId = clusterId
return n2,clusterId```
now I want to know how to save this and not executing this query each time I need this result . And how can I compare nodes properties of the same cluster ?
Solved! Go to Solution.
10-20-2018 07:11 PM
You can create a "COLLABORATED" relationship between those nodes n1 and n2, with the cluster-id and count as property on the relationship.
Or better just label them with a marker label, like :FrequentCollaborators
10-20-2018 07:11 PM
You can create a "COLLABORATED" relationship between those nodes n1 and n2, with the cluster-id and count as property on the relationship.
Or better just label them with a marker label, like :FrequentCollaborators
10-29-2018 05:29 AM
Thanks Micheal for your help 🙂
All the sessions of the conference are now available online