code encapsulated abstract data type: weighted, undirected graph with vertices of any object type. implement Kruskal’s algorithm for finding minimum spanning tree of a graph