Changed two 'addEdge's to a connect