Esempio n. 1
0
 protected UpdatableImmutableBidirectionalGraph(
     ImmutableDictionary <TVertexId, TVertex> vertices,
     ImmutableDictionary <TEdgeId, TEdge> edges,
     ImmutableBidirectionalGraph <TVertexId, VertexIdEdge <TVertexId, TEdgeId> > graph)
 {
     _vertices = vertices;
     _edges    = edges;
     _graph    = graph;
 }
Esempio n. 2
0
 protected virtual TGraph CreateInstance(
     ImmutableDictionary <TVertexId, TVertex> vertices,
     ImmutableDictionary <TEdgeId, TEdge> edges,
     ImmutableBidirectionalGraph <TVertexId, VertexIdEdge <TVertexId, TEdgeId> > graph)
 => (TGraph) new UpdatableImmutableBidirectionalGraph <TVertex, TVertexId, TEdge, TEdgeId, TGraph>(vertices, edges, graph);