Beispiel #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;
 }
Beispiel #2
0
 @Override
 public void setDirectedEdgeSchema(LinkedHashMap<String, String> schema) {
   this.inputNodesHaveEnded();
   super.setDirectedEdgeSchema(schema);
 }