moved to new addEdge()