this.edgeMap.put(edge.id, new Pair(line.getFromModel() != null ? line
.getFromModel().getId() : null, line.getToModel().getId()));
}
}
JGraphFacade facade = new JGraphFacade(jgraph);
facade.setIgnoresUnconnectedCells(false);
JGraphHierarchicalLayout layout = new JGraphHierarchicalLayout();
layout.setOrientation(SwingConstants.WEST);
layout.setIntraCellSpacing(70.0);
layout.setLayoutFromSinks(false);
layout.run(facade);
Map nested = facade.createNestedMap(true, true);
if (nested != null) {
this.hideDummyNodes(nested);
this.addGroups(state.getGraphs(), nested, state);
this.ensureNoOverlap(nested, state);
nested = this.shiftMap(nested, state);