public void readFromFileINET(String fileName) {
        try {
            Scanner scanner = new Scanner(new File(fileName));
            int nodeCount = scanner.nextInt();
            scanner.nextInt();//skip edge count
            for (int i = 0; i < nodeCount; i++) {
                ASNode node = new ASNode(i);
                nodeStore[i] = node;
                graphHop.addVertex(i);
                graphLatency.addVertex(i);
                //skip id x y
                scanner.nextLine();
            }

            int x, y, latency;
            while (scanner.hasNext()) {
                x = scanner.nextInt();
                y = scanner.nextInt();
                latency = scanner.nextInt();

                nodeStore[x].addNBR(latency, nodeStore[y]);
                nodeStore[y].addNBR(latency, nodeStore[x]);
                try {
                    graphLatency.setEdgeWeight(graphLatency.addEdge(x, y), latency);
                    graphLatency.setEdgeWeight(graphLatency.addEdge(y, x), latency);
                    graphHop.setEdgeWeight(graphHop.addEdge(x, y), 1);
                    graphHop.setEdgeWeight(graphHop.addEdge(y, x), 1);
                } catch (NullPointerException ex) {
                } catch (IllegalArgumentException ex) {
                    System.err.println(ex);
                }
            }

            //read id-prefix
            boolean fileExists = (new File("id-prefix." + Global.treeSize + ".txt")).exists();
            if (fileExists) {
                scanner = new Scanner(new File("id-prefix." + Global.treeSize + ".txt"));
                while (scanner.hasNext()) {
                    int nodeID = scanner.nextInt();
                    nodeStore[nodeID].prefix = new Prefix(scanner.next());
                    nodeStore[nodeID].provider = scanner.nextInt();
                }
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(ASGraph.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IndexOutOfBoundsException ex) {
        }

    }