Move edge list to node structure.