Undirected-selfloops get added twice to the graph, cluttering it unneeded. added a fix that only undirected edges between to different nodes get added twice (in both directions)