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.

How to use topological linkprediction with adamic-adar score in a projected graph on GDS?

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!
0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online