Hi, I'm using latest version of Neo4j (1.4.5), I have very basic question, How can I use GDS libraries, I downloaded a zip file named "neo4j-graph-data-science-1.6.1-standalone" on website, Should I load it on Neo4j and how? any suggestion?
I have graph of some nodes (Persons and the college they graduated from by [:HAS_BS_SPECIALTY_IN {Score:...}] and [:HAS_PHD_SPECIALTY_IN {Score:...}] , I want to get a person with maximum score, I use the cypher query:
MATCH (p:Person)-[r]->(s)
UNWIN...
There are two points: I have lots of other relations which follow the pattern (p:Person)-[r]->(s)
and also there are lots of person with an specialty but with no Score.
Your new suggestion is not working, I changed it as
MATCH (p:Person)-[r]->(s)
WH...
I found my answer by this query:
MATCH (p:Person)-[r]->(s)
WHERE type(r) CONTAINS 'SPECIALTY' AND r.Score IS NOT NULL
WITH p, r, r.Score AS score
RETURN p.Full_Name, score, type(r) ORDER BY score DESC Limit 1
I just had an obsession to use max() func...