public void Deserialize( XmlReader reader, IMutableVertexAndEdgeListGraph <TVertex, TEdge> visitedGraph, IIdentifiableVertexFactory <TVertex> vertexFactory, IIdentifiableEdgeFactory <TVertex, TEdge> edgeFactory) { if (reader == null) { throw new ArgumentNullException("reader"); } if (visitedGraph == null) { throw new ArgumentNullException("visitedGraph"); } if (vertexFactory == null) { throw new ArgumentNullException("vertexFactory"); } if (edgeFactory == null) { throw new ArgumentNullException("edgeFactory"); } ReaderWorker worker = new ReaderWorker( this, reader, visitedGraph, vertexFactory, edgeFactory); worker.Deserialize(); }
public ReaderWorker( GraphMLSerializer <TVertex, TEdge> serializer, XmlReader reader, IMutableVertexAndEdgeListGraph <TVertex, TEdge> visitedGraph, IIdentifiableVertexFactory <TVertex> vertexFactory, IIdentifiableEdgeFactory <TVertex, TEdge> edgeFactory ) { this.serializer = serializer; this.reader = reader; this.visitedGraph = visitedGraph; this.vertexFactory = vertexFactory; this.edgeFactory = edgeFactory; }