Adding parents to nodes after all nodes have been read

- this means they initially have null as the array of parents and then receive them