Added another case to addEdge and edited other methods.