pc.newProject();
Workspace workspace = pc.getCurrentWorkspace();
Lookup.getDefault().lookup(AttributeController.class).getModel();
//Graph 1 - Multilevel sample without edges
DhnsGraphController controller1 = new DhnsGraphController();
dhns1 = new Dhns(controller1, workspace);
graph1 = new HierarchicalDirectedGraphImpl(dhns1, dhns1.getGraphStructure().getMainView());
GraphFactoryImpl factory1 = dhns1.factory();
AbstractNode nodeA = factory1.newNode();
AbstractNode nodeB = factory1.newNode();
AbstractNode nodeC = factory1.newNode();
AbstractNode nodeD = factory1.newNode();
AbstractNode nodeE = factory1.newNode();
graph1.addNode(nodeA);
graph1.addNode(nodeB);
graph1.addNode(nodeC, nodeA);
graph1.addNode(nodeE, nodeB);
graph1.addNode(nodeD, nodeA);
graph1.addNode(nodeD, nodeB);
//Graph2 - Directed sample with edges
Workspace workspace2 = pc.newWorkspace(pc.getCurrentProject());
pc.openWorkspace(workspace2);
Lookup.getDefault().lookup(AttributeController.class).getModel();
nodeMap2 = new HashMap<String, Node>();
DhnsGraphController controller2 = new DhnsGraphController();
dhns2 = new Dhns(controller2, workspace2);
graph2 = new HierarchicalDirectedGraphImpl(dhns2, dhns2.getGraphStructure().getMainView());
GraphFactoryImpl factory2 = dhns2.factory();
for (int i = 0; i < 10; i++) {