1 import java
.io
.IOException
;
5 public static void main(String
[] args
) {
10 int iterations
= 0, guisize
= 0;
13 iterations
= Integer
.parseInt(args
[0]);
14 } catch (Exception e
) {
18 if (args
.length
== 2) {
20 guisize
= Integer
.parseInt(args
[1]);
21 } catch (Exception e
) { }
24 graph
= new Graph(args
[1]);
26 graph
= Graph
.sampleGraph();
28 env
= new Environment(iterations
, graph
);
31 System
.out
.println(env
);
32 } else if (args
.length
== 3) {
34 guisize
= Integer
.parseInt(args
[1]);
35 graph
= new Graph(args
[2]);
36 env
= new Environment(iterations
, guisize
, graph
);
39 System
.out
.println(env
);
44 /* wait for a keypress before exit */
47 } catch (IOException e
) {
48 System
.out
.println(e
.toString() + "(" + e
.getClass() + "): " + e
);