Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/13 13:18:57 (11 years ago)
Author:
bburlacu
Message:

#1772: Refactoring of directed graph components, added code for correctly serializing vertices and edges. Added specific building blocks analyzers and new population diversity analyzer which correctly integrates with the parallel engine.

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  
    3131  [Item("Directed graph", "Generic directed graph base class.")]
    3232  [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 {
    3434    [Storable]
    3535    private readonly List<T> nodes; // graph will consist of a set of nodes of type T
     
    3838    }
    3939
    40     public DirectedGraph() {
     40    public GenericGraph() {
    4141      nodes = new List<T>();
    4242    }
    4343
    44     public DirectedGraph(IDirectedGraph<T> g) {
     44    public GenericGraph(IGenericGraph<T> g) {
    4545      nodes = new List<T>(g.Nodes);
    4646    }
    4747
    4848    public override IDeepCloneable Clone(Cloner cloner) {
    49       return new DirectedGraph<T>(this, cloner);
     49      return new GenericGraph<T>(this, cloner);
    5050    }
    5151
     
    5555
    5656    [StorableConstructor]
    57     protected DirectedGraph(bool serializing)
     57    protected GenericGraph(bool serializing)
    5858      : base(serializing) {
    5959    }
    6060
    61     protected DirectedGraph(DirectedGraph<T> original, Cloner cloner)
     61    protected GenericGraph(GenericGraph<T> original, Cloner cloner)
    6262      : base(original, cloner) {
    6363      nodes = new List<T>(original.Nodes); // bburlacu: maybe the list should be empty
Note: See TracChangeset for help on using the changeset viewer.