cypher neo4j - collect a group of nodes -


i try collection of nodes in neo4j project

my db try describe connection between users , movies rating

so link users movie link "rated" have rating value(1-5)

in addition linked users "similarity" link

now have groups of users have liked between them

the groups of users

i want see each group of similarity users:group of movies liked movies(liked = rating>=4)

example

in example result is:outbreak,dance wolves,disclosure

now have created direct relationship similar between users, must run community detection algorithms, defines different groups of users. can run using apoc.algo functions using apoc plugin neo4j.

call apoc.algo.community(25,['user'],'community','similar','both',1,10000) 

now have defined user groups community detection algorithm can query different groups of users like

//you can set additional filters when matching movies groups liked match (user:user)-[rel:liked]->(m:movie) rel.rating > 3.5 return distinct(user.community) group,collect(m.title) movies 

know simple version of how can implement this. suggest check out this graphgist , maybe this video.

hope helps


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -