changed program to undirected edges. There is a random edge still
missing when using 10 nodes and 45 edges.