import java.io.*; import java.util.*; class TestGenerator { static BufferedReader keyboard = new BufferedReader ( new InputStreamReader(System.in) ); public static void main (String[] args) throws IOException{ Random source = new Random(); DB G = new DB( 1 ); System.out.print("(Average, not quite, but almost) edge size? "); double mu = new Integer( keyboard.readLine() ).doubleValue(); System.out.print("Standard deviation? "); double sigma = new Integer( keyboard.readLine() ).doubleValue(); System.out.print("Prob of NEW edge? "); double alpha = new Double(keyboard.readLine() ).doubleValue(); System.out.print("Prob of pref attachm selection for NEW edges? "); double pn = new Double(keyboard.readLine() ).doubleValue(); System.out.print("Prob of pref attachm selection for OLD edges? "); double po = new Double(keyboard.readLine() ).doubleValue(); System.out.print("Number of edges? "); int h = new Integer( keyboard.readLine() ).intValue(); G.random(source,mu,sigma,alpha,pn,po,h); System.out.print("How do you want to see the data? (basic, deg-dist, log-log-deg-dist) "); G.printGraph(keyboard.readLine()); } }