Minimum Spanning Tree Kruskal and Prim Algorithms with time comparison.