@@ -0,0 +1,871 @@
+package com;%0A%0Aimport java.io.File;%0Aimport java.text.DecimalFormat;%0A%0Apublic class GraphCreator %7B%0A%0A%09/**%0A%09 * @param args%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09int forItration =-9;%0A%09%09int forStartingPageRank=-9;%0A%09%09String fileName = null;%0A%09%09%0A%09%09if(args.length!=3)%7B%0A%09%09%09System.out.println(%22Please pass Three argument ...%22);%0A%09%09%09System.exit(0);%0A%09%09%7D%0A%09%09try%7B%0A%09%09%09forItration = Integer.parseInt(args%5B0%5D);%0A%09%09%09forStartingPageRank = Integer.parseInt(args%5B1%5D);%0A%09%09%09fileName = args%5B2%5D;%0A%09%09%7Dcatch(NumberFormatException nfe)%7B%0A%09%09%09System.out.println(%22Invalid Arguments ...%22);%0A%09%09%09System.exit(0);%0A%09%09%7D%0A%09%09System.out.println(%22Creating Graph..%22);%0A%09%09%0A%09%09Graph graph = Graph.createGraph(new File(fileName),forStartingPageRank);//%22nodes.txt%22%0A%09%09System.out.println(%22Graph created.%22);%0A%09%09graph.display(forItration);%0A%09%09//System.out.println(graph.getNodes());%0A%09%7D%0A%0A%7D%0A

Create GraphCreator.java