Fixed deep copy issue with edgelist