gd.setSize((int) (Math.log(g.numVertices()) * 180), (int) (Math.log(g
.numVertices()) * 180.0));
//gd.setGraphLayout(new FRLayout(g));
//gd.setGraphLayout(new SpringLayout(g));
//gd.setGraphLayout(new CircleLayout(g));
gd.setGraphLayout(new ISOMLayout(g));
//gd.setLayout(SpringLayout.)
gd.addNotify();
gd.setSize((int) (Math.log(g.numVertices()) * 180), (int) (Math.log(g
.numVertices()) * 180.0));
gd.validate();