Algorithm For Prims Minimum Spanning Tree Practice