Now calling `addEdge` multiple times with same data causes edge to be duplicated.
Now calling
addEdgemultiple times with same data causes edge to be duplicated.