Add convenience method for addEdge()