A Prim's Algorithm implementation of Minimum Spanning Tree.