Kruskal edge for data structure

holds 2 vertex and weight implementation