107108109110111112113114115116117
HashMap<String, Object> jgraphVertices = new HashMap<String, Object>(); try { for(Object o : g.vertexSet()) { Object o1 = graph.insertVertex(parent,((Node)o).m_name, ((Node)o).m_name, 20, 20, 80, 30); jgraphVertices.put(((Node)o).m_name, o1); }