added EdgeGraph; finished kruskal algorithm