viewer.setSelection(new StructuredSelection(focus));
viewer.setFilters(new ViewerFilter[] {});
viewer.setInput(focus);
Iterator nodes = viewer.getGraphControl().getNodes().iterator();
Graph graph = viewer.getGraphControl();
Dimension centre = new Dimension(graph.getBounds().width / 2, graph.getBounds().height / 2);
while (nodes.hasNext()) {
GraphNode graphNode = (GraphNode) nodes.next();
if (graphNode.getLocation().x <= 1 && graphNode.getLocation().y <= 1) {
graphNode.setLocation(centre.width, centre.height);
}