public void createWeightedGraph(){
        Scanner console = new Scanner(System.in);
        
        int index;
        int vertex;
        int adjacentVertex;
        int edge;
        
        String fileName;

        if (gSize != 0)
            clearGraph();

        Scanner infile = null;

        try{
            System.out.print("Input file name for edges: ");
            fileName = console.nextLine();
            System.out.println();

            infile = new Scanner(new FileReader(fileName));
        }
        catch (FileNotFoundException fnfe){
            System.out.println(fnfe.toString());
            System.exit(0);
        }

        gSize = infile.nextInt(); //get the number of edges
        
        for( index = 0; index < gSize; index++){
            
        }

       
    }