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:
'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.