Find the minimal spanning tree for a graph using Prim's algorithm