Prim-Jarnik Implementation of Prim-Jarknik's algorithm to find the minimum spanning tree of an undirected graph.