Hi,
I am trying to run query like this:
MATCH (n1:Person), (n2:Person)
WHERE NOT (n1)-[:KNOWS]-(n2) AND id(n1) < id(n2)
WITH gds.alpha.linkprediction.adamicAdar(n1, n2, {relationshipQuery: "KNOWS"}) AS adam_score, n1, n2,
RETURN n1.name, n2.name, adam_score
ORDER BY adam_score DESC
But the query is taking a lot of time to run. Can i build a similar query onto a projected gds graph? There is any way to optimize this query?
Thanks!