/* Programmer: Sriram Pemmaraju. Nov 24th, 2007 */ import java.io.*; public class CityTester2{ //Main method public static void main(String[] args) { City newCity = new City(); myWeightedGraph g, h; String[] path; System.out.println("---------------------------------------------------------------------------------------"); System.out.println("EXPERIMENT 2: This computes an MST of the cities in the upper midwest."); // Select cities in the upper midwest newCity.selectCities("latitude", 4000, 5000); newCity.selectCities("longitude", 8500, 10000); // Print these out System.out.println("Cities in the upper mid-west are:"); newCity.printCities(); System.out.println(" "); System.out.println("The MST of these cities is:"); g = newCity.makeGraph(); h = g.MSTGraph(); h.printEdges(); System.out.println("The cost of the MST of the upper midwest is " + g.costMST()); System.out.println("---------------------------------------------------------------------------------------"); } }