Calculates minimum spanning tree of flight cost over cities.