I am new to neo4j and trying some stuff. I have two csv files: one with people, and one with friendship relationships.
I am trying to create a graph of friendship relationships between people, and I also want to do updates like: renaming people's names, changing the friendship relationships, and lastly I also want to run queries like "who are friends with Allen".
people.csv
looks like this:id, name 1, Allen 2, John
friendship.csv
looks like this:TO, FROM Allen, John
I have loaded these csv using code below:
LOAD CSV FROM 'file:///friendship.csv' AS line WITH line LIMIT 100 RETURN line
I have found different code for creating relationships, but I am confused about them.
Can anyone tell me how to create simple relationship of friendship mapping from the csv? and thereafter how to add more relationships using neo4j?