Edited EdgeWeightedGraph to use functions for finding edges and their weights, PrimMST for compliance to the changed class, and added/edited cycles for use in Case 3