Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-28-2022 06:50 AM
Hi,
I need to create relationships between nodes I already created by importing correlation values from a CSV file. The file contains a column named 'sensor' whose values are sensor names (sensor_1, sensor_2...) and the remaining ones contain the correlation value. the file is structured as a square matrix. it would be great to avoid creating self-node relationships. I tried using apoc.do.when but it raises many errors, so I wrote down the following cypher code lines to try to get the relationships at least (self-node ones included), but it does not work, it just returns the sensor nodes. This is my first ever neo4j project and I'm stuck. Can you help me?
11-28-2022 09:02 AM
I found the answer by myself. The problem is the position of the "MATCH" clauses, they need to be inside the CALL:
11-28-2022 09:56 AM
You shouldn’t need the call subquery.
All the sessions of the conference are now available online