Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-01-2021 12:54 AM
Hi all, I could like to find out which pairs of stock price have correlation over 0.85 in last year.
I input the following in Neo4J:
MATCH (a)-[c:Correlation]-(b)
#Find out the relationship with correlation>0.85 & Exclude relationships with the stock itself (the correlation must be 1)
WHERE c.correlation > 0.85 and a<>b
Return *
The outcome:
I founded out there are 2 pairs with correlations higher than 0.85 (highlighted in yellow)
But some extra relationships (less than 0.85) are also included in the graph.
May I have some recommendations that how can I excluded those extra relationship when inputting order to Neo4J. Thanks!
Solved! Go to Solution.
01-01-2021 01:40 AM
can you uncheck connect result nodes under settings and test it.
Hello @dirkchin63, welcome to Neo4j community.
Please, match the exact relationship and relationship properties also.
01-01-2021 01:40 AM
can you uncheck connect result nodes under settings and test it.
Hello @dirkchin63, welcome to Neo4j community.
Please, match the exact relationship and relationship properties also.
01-01-2021 02:11 AM
Done! I am a newcomer of Neo4J and Thank you very much for your help!
All the sessions of the conference are now available online