3132333435363738394041
Map<String, Vertex> idToVertex = new HashMap<String, Vertex>(); DirectedGraph g = new DirectedGraph(); for(String key:idMap.keySet()){ Vertex s = new Vertex(key); g.addVertex(s); idToVertex.put(key, s); }