updated mst functions to return mst w/ attr