package l25; public class Test{ static int MAX_WEIGHT = 1000000; static double VERTICAL_BIAS = 1.0; public static void main(String[] args) { int rows = Integer.parseInt(args[0]); int cols = Integer.parseInt(args[1]); if (args.length >= 3) MAX_WEIGHT = Integer.parseInt(args[2]); if (args.length >= 4) VERTICAL_BIAS = Double.parseDouble(args[3]); RandomGridGraph g = new RandomGridGraph(rows,cols,MAX_WEIGHT,VERTICAL_BIAS); new GridDisplay(g,1000,1000); } }