Import CSV graph from array notation


I received a task to do and I have no idea how to make it. I have a few GB of data in CSV format which I have to import to Neo4j Aura. Each CSV is an undirected graph (tree) with array notation of nodes positions -

Joe, []

We can assume that relation between nodes is the father - this means

  • Joe is the father of Pat and Corbin
  • Pat is the father of Mike
  • Mike is the father of Steve and Lex

I am looking at Cypher query which will help me to covert this CSV to graph in Neo4j. Will be awesome if someone with bigger experience can support :slight_smile: