@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; }
@Override public void finishedParsing() { this.inputNodesHaveEnded(); super.finishedParsing(); }