now Prim's & Kruskal's algos can work with disconnected graphs