Generate large random graphs and efficienctly calculate MSTs