dhns2 = new Dhns(controller2, workspace2);
graph2 = new HierarchicalDirectedGraphImpl(dhns2, dhns2.getGraphStructure().getMainView());
GraphFactoryImpl factory2 = dhns2.factory();
for (int i = 0; i < 10; i++) {
Node node = factory2.newNode();
node.getNodeData().setLabel("Node " + i);
graph2.addNode(node);
nodeMap2.put(node.getNodeData().getLabel(), node);
}
Node node4 = nodeMap2.get("Node 4");
Node node5 = nodeMap2.get("Node 5");
Node node6 = nodeMap2.get("Node 6");
Node node7 = nodeMap2.get("Node 7");
AbstractEdge edge1 = factory2.newEdge(node4, node5);
AbstractEdge edge2 = factory2.newEdge(node5, node6);
AbstractEdge edge3 = factory2.newEdge(node6, node5);
AbstractEdge edge4 = factory2.newEdge(node7, node7);