3 import java
.io
.IOException
;
7 public static void main(String
[] args
) {
12 int iterations
= 0, guisize
= 0;
15 iterations
= Integer
.parseInt(args
[0]);
16 } catch (Exception e
) {
20 if (args
.length
== 2) {
22 guisize
= Integer
.parseInt(args
[1]);
23 } catch (Exception e
) { }
26 graph
= new Graph(args
[1]);
28 graph
= Graph
.sampleGraph();
30 env
= new Environment(iterations
, graph
);
33 } else if (args
.length
== 3) {
35 guisize
= Integer
.parseInt(args
[1]);
36 graph
= new Graph(args
[2]);
37 env
= new Environment(iterations
, guisize
, graph
);
44 System
.out
.print("Computation finished..");
45 /* wait for a keypress before exit */
48 } catch (IOException e
) {
49 System
.out
.println(e
.toString() + "(" + e
.getClass() + "): " + e
);