import java.io.*; import java.util.*; /** Candidate main program * * @author Duncan Buell * * written: 18 November 2007 */ public class Main extends Object { public static void main(String[] args) { String inputFileName = null; Scanner inDataFile = null; Graph theGraph = new Graph(7); inputFileName = "theDataFile.dat"; inDataFile = DAB.ScannerOpen(inputFileName); System.out.println("Input file '" + inputFileName + "' opened, continue"); /******************************************************************************/ /** Read in the count of nodes in the graph **/ System.out.println("Read in the data"); theGraph.getTheGraph(inDataFile); System.out.println("The data has been read"); /******************************************************************************/ /** Print the graph **/ System.out.printf("%nThe graph data is%n"); theGraph.printTheGraph(); } // public static void main(String[] args) } // public class Main extends Object