Fixed bug where the simulation would add multiple edges between a given pair of vertices