Added a method to return the list of edges forming a mst