switchLayout.setText("Switch to FRLayout");
layout =
new SpringLayout<Number,Number>(g, new ConstantTransformer(EDGE_LENGTH));
layout.setSize(d);
Relaxer relaxer = new VisRunner((IterativeContext)layout);
relaxer.stop();
relaxer.prerelax();
StaticLayout<Number,Number> staticLayout =
new StaticLayout<Number,Number>(g, layout);
LayoutTransition<Number,Number> lt =
new LayoutTransition<Number,Number>(vv, vv.getGraphLayout(),