Prim's MST algorithm
Example graph in form of edge list