Ejemplo n.º 1
0
 @Override
 public void finishedParsing() {
   if (this.hasDirectedEdges) {
     super.setDirectedEdgeSchema(this.directedEdgeSchema);
     for (Edge e : edges) {
       if (e.isDirected()) {
         super.addDirectedEdge(e.getSource(), e.getTarget(), e.getAttributes());
       }
     }
   }
   if (this.hasUndirectedEdges) {
     super.setUndirectedEdgeSchema(this.undirectedEdgeSchema);
     for (Edge e : edges) {
       if (!e.isDirected()) {
         super.addUndirectedEdge(e.getSource(), e.getTarget(), e.getAttributes());
       }
     }
   }
   super.finishedParsing();
   edges = null;
 }
Ejemplo n.º 2
0
 @Override
 public void setDirectedEdgeSchema(LinkedHashMap<String, String> schema) {
   this.inputNodesHaveEnded();
   super.setDirectedEdgeSchema(schema);
 }