Java Implementation of Kruskal's Algorithm using disjoing sets
##Code Notes Current code runs on this sample graph
It produces this Minimum Spanning Tree 
- Requires distinct nodes named with consecutive integers. If they really do have the same "name", convert them to integer ID's to use this algorithm
Example graph has 8 nodes numbered 1-8 (array ignores the 0th index) - You must hardcode the graph structure in constructor as a list of edges
- Make sure
nodeCountis accurate. There's no error checking betweennodeCount& the actual edge list - My implementation has early termination. If a graph has N nodes the MST has (N-1) edges
Hence&& mstEdges.size()<(nodeCount-1)in my loop
####Sources
- Disjoint Sets by Mark Allen Weiss Author of Data Structures and Algorithm Analysis in Java (3rd Edition), 2011
He also has other helpful Java Data Structures implementations

