Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/31/14 18:28:25 (10 years ago)
Author:
bburlacu
Message:

#1772: Fixed bug and improved handling of elite individuals in the genealogy analyzer. Fixed minor bug in the tracing code. Other minor cosmetic improvements to the GenealogyGraph and FragmentGraphView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs

    r11257 r11318  
    3838
    3939    [Storable]
    40     private Dictionary<double, List<IGenealogyGraphNode>> ranks; // use a linked list for fast insertion/removal
     40    private Dictionary<double, List<IGenealogyGraphNode>> ranks;
     41
    4142    public Dictionary<double, List<IGenealogyGraphNode>> Ranks {
    4243      get { return ranks; }
     
    5657
    5758    [StorableConstructor]
    58     protected GenealogyGraph(bool deserializing) : base(deserializing) { }
     59    protected GenealogyGraph(bool deserializing)
     60      : base(deserializing) {
     61    }
     62
    5963    public GenealogyGraph() {
    6064      Ranks = new Dictionary<double, List<IGenealogyGraphNode>>();
     
    8589
    8690      if (idMap.ContainsKey(node.Id))
    87         throw new InvalidOperationException("Duplicate content is not allowed in the genealogy graph.");
     91        throw new InvalidOperationException("Duplicate ids are not allowed in the genealogy graph.");
    8892      idMap[node.Id] = node;
    8993    }
     
    118122
    119123    public event EventHandler GraphUpdated;
     124
    120125    private void OnGraphUpdated(object sender, EventArgs args) {
    121126      var updated = GraphUpdated;
Note: See TracChangeset for help on using the changeset viewer.