コード例 #1
0
 public AdjacencyMatrixDictionaryDirector1(IVertexDataProvider vertexDataProvider, IAdjacencyProvider adjacencyProvider)
 {
     if (vertexDataProvider == null)
     {
         throw new NullReferenceException("Data provider cannot be null when constructing AdjacencyMatrixDictionaryDirector!");
     }
     this.VertexDataProvider = vertexDataProvider;
     if (adjacencyProvider == null)
     {
         throw new NullReferenceException("adjacencyProvider cannot be null when constructing AdjacencyMatrixDictionaryDirector!");
     }
     this.AdjacencyProvider = adjacencyProvider;
 }
コード例 #2
0
 public AdjacencyMatrixDictionaryDirector(IVertexDataProvider vertexDataProvider, IAdjacencyProvider adjacencyProvider,
                                          IIncidenceProvider incidenceProvider, EdgeNodeDictionaryProvider edgeNodeDictionaryProvider)
 {
     if (vertexDataProvider == null)
     {
         throw new NullReferenceException("Data provider cannot be null when constructing AdjacencyMatrixDictionaryDirector!");
     }
     this.VertexDataProvider = vertexDataProvider;
     if (adjacencyProvider == null)
     {
         throw new NullReferenceException("adjacencyProvider cannot be null when constructing AdjacencyMatrixDictionaryDirector!");
     }
     this.AdjacencyProvider = adjacencyProvider;
     if (incidenceProvider == null)
     {
         throw new NullReferenceException("incidenceProvider cannot be null when constructing AdjacencyMatrixDictionaryDirector!");
     }
     this.IncidenceProvider = incidenceProvider;
     if (edgeNodeDictionaryProvider == null)
     {
         throw new NullReferenceException("edgeNodeDictionaryProvider cannot be null when constructing AdjacencyMatrixDictionaryDirector!");
     }
     this.EdgeNodeDictionaryProvider = edgeNodeDictionaryProvider;
 }