Changeset 9419 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/GenericGraph/GenericGraph.cs
- Timestamp:
- 05/02/13 13:18:57 (11 years ago)
- Location:
- branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/GenericGraph
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/GenericGraph/GenericGraph.cs
r9236 r9419 31 31 [Item("Directed graph", "Generic directed graph base class.")] 32 32 [StorableClass] 33 public class DirectedGraph<T> : Item, IDirectedGraph<T> where T : class, IVertex {33 public class GenericGraph<T> : Item, IGenericGraph<T> where T : class, IVertex { 34 34 [Storable] 35 35 private readonly List<T> nodes; // graph will consist of a set of nodes of type T … … 38 38 } 39 39 40 public DirectedGraph() {40 public GenericGraph() { 41 41 nodes = new List<T>(); 42 42 } 43 43 44 public DirectedGraph(IDirectedGraph<T> g) {44 public GenericGraph(IGenericGraph<T> g) { 45 45 nodes = new List<T>(g.Nodes); 46 46 } 47 47 48 48 public override IDeepCloneable Clone(Cloner cloner) { 49 return new DirectedGraph<T>(this, cloner);49 return new GenericGraph<T>(this, cloner); 50 50 } 51 51 … … 55 55 56 56 [StorableConstructor] 57 protected DirectedGraph(bool serializing)57 protected GenericGraph(bool serializing) 58 58 : base(serializing) { 59 59 } 60 60 61 protected DirectedGraph(DirectedGraph<T> original, Cloner cloner)61 protected GenericGraph(GenericGraph<T> original, Cloner cloner) 62 62 : base(original, cloner) { 63 63 nodes = new List<T>(original.Nodes); // bburlacu: maybe the list should be empty
Note: See TracChangeset
for help on using the changeset viewer.