Prim's Minimum Cost Spanning Tree Algorithm (Prioirity Queue Version)