3031323334353637383940
{ Layout<RectangleWithRef<?,?>, Object> layout = new FRLayout2(graph); layout.setSize(new Dimension(500, 500)); layout.initialize(); for (RectangleWithRef<?,?> vertex : graph.getVertices()) { Point2D point = layout.transform(vertex);