How Does Prims Algorithm Work