Finding a Minimum Spanning Tree: Prim's Algorithm (blog.mousereeve.com)