Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-17-2020 05:19 AM
Hi, I have this db:
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.
06-26-2020 12:48 PM
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
All the sessions of the conference are now available online