public class MakeExp { public static void makeJob(int n,double p,int m,int col) { int p100 = (int)(p*100.0); String s = "-"; if (p100 < 10) s = "-0"; for (int i=0;i9){ System.out.print("java ColourExp data/"+ n + s + p100 +"-"+ i +".txt " + col); System.out.println(" > results/"+ col + s + n + s + p100 +"-"+ i +".txt"); } else { System.out.print("java ColourExp data/"+ n + s + p100 +"-0"+ i +".txt " + col); System.out.println(" > results/"+ col + s + n + s + p100 +"-0"+ i +".txt"); } } } public static void main(String[] args) { int n = Integer.parseInt(args[0]); // vertices in a graph int col = Integer.parseInt(args[1]); // number of colours double pLo = Double.parseDouble(args[2]); // starting probability double pHi = Double.parseDouble(args[3]); // ending probability double pInc = Double.parseDouble(args[4]); // p increment int m = Integer.parseInt(args[5]); // number of graphs at each setting double p = pLo; for (int i=0;p<=pHi+(pInc/2.0);i++){ makeJob(n,p,m,col); p = p + pInc; } } }