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.

Similarity Problem

Hi, I have this db:
2X_c_c8a4eefddc480e32421895625c6d2962fc0e7896.png

and i whant to check the similarity between a x:person and the people that he follows. So i create a graph like this:
CALL gds.graph.create.cypher(
'my-cypher-graph7',
'MATCH (n) where n:Person or n:Movie RETURN id(n) AS id',
'MATCH (a:Person)-[:FOLLOWS]->(b:Person)-[:LIKES]->(x:Movie) where a.name="Emanuele Mori" RETURN id(b) AS source, id(x) AS target'

)
YIELD graphName, nodeCount, relationshipCount, createMillis

and using the Node similarity algorithm I find the similarity between the people who x follows and not between x and the people.

1 REPLY 1

Hi Salvatore,
Did you have a question?

What does your cypher look like to do the similarity and are you getting the results you wanted?

Regards,
Joel