* If non-null, the parent subgraph.
*/
@SuppressWarnings("unchecked")
void addNodes(NodeList nodes) {
subgraph = new Subgraph(this);
subgraph.innerPadding = new Insets(0, 0, 0, 0);
subgraph.insets = new Insets(20, 0, 0, 0);
Figure figure = (Figure) getFigure();
subgraph.setSize(figure.getPreferredSize());
subgraph.setPadding(new Insets(2, 2, 2, 2));
nodes.add(subgraph);
for (Object child : getChildren()) {
if (child instanceof VertexEditPart) {
VertexEditPart part = (VertexEditPart) child;