private void loadVerticesAndRelatives(){
  List<CnATreeElement> elementList=new LinkedList<CnATreeElement>();
  for (  IGraphElementLoader loader : getLoaderList()) {
    loader.setCnaTreeElementDao(getCnaTreeElementDao());
    elementList.addAll(loader.loadElements());
  }
  for (  CnATreeElement element : elementList) {
    graph.addVertex(element);
    if (LOG.isDebugEnabled()) {
      LOG.debug("Vertex added: " + element.getTitle());
    }
    uuidMap.put(element.getUuid(),element);
  }
  for (  CnATreeElement parent : elementList) {
    Set<CnATreeElement> children=parent.getChildren();
    for (    CnATreeElement child : children) {
      createParentChildEdge(parent,child);
    }
  }
}

private void loadVerticesAndRelatives ( ) { List < CnATreeElement > elementList = new LinkedList < CnATreeElement > ( ) ; for ( IGraphElementLoader loader : getLoaderList ( ) ) { loader . setCnaTreeElementDao ( getCnaTreeElementDao ( ) ) ; elementList . addAll ( loader . loadElements ( ) ) ; } for ( CnATreeElement element : elementList ) { graph . addVertex ( element ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Vertex added: " + element . getTitle ( ) ) ; } uuidMap . put ( element . getUuid ( ) , element ) ; } for ( CnATreeElement parent : elementList ) { Set < CnATreeElement > children = parent . getChildren ( ) ; for ( CnATreeElement child : children ) { createParentChildEdge ( parent , child ) ; } } }
loads all vertices and adds them to the graph . an edge for each children is added if the child is part of the graph .
