//insert maps
Collection<CognitiveMap> mapCollection = maps.values();
Iterator<CognitiveMap> it = mapCollection.iterator();
Collection<FcmConnection> links;
while(it.hasNext()){
CognitiveMap map = it.next();
//insert vertex
Set<String> mapConcepts = map.getConcepts().keySet();
vertices = new Vector<MyVertex>();
for(String concept : mapConcepts){
System.out.println(concept);
MyVertex v = new MyVertex(concept);
vertices.add(v);
graph.addVertex(v);
}
//insert links
links = maps.get(map.getName()).getConnections().values();
Iterator<FcmConnection> itc = links.iterator();
edges = new Vector<MyEdge>();
while(itc.hasNext()){
WeightedConnection link = (WeightedConnection)itc.next();
//System.out.println("Edge from" + link.getFrom().getName() + "to" + link.getTo().getName());