Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/22/14 13:49:35 (10 years ago)
Author:
bburlacu
Message:

#1772: Simplified GenealogyGraph (and related components) API in an effort to improve speed and memory consumption (eg., by sharing the same arc when walking the graph in both directions: parent-child and child-parent).

File:
1 edited

Legend:

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

    r10685 r10886  
    107107      return Quality.CompareTo(other.Quality);
    108108    }
    109     public new void AddForwardArc(IVertex target, double w = 0.0, object data = null) {
    110       var arc = new GenealogyGraphArc { Source = this, Target = (IGenealogyGraphNode)target, Data = data, Weight = w };
    111       base.AddForwardArc(arc);
    112     }
    113     public new void AddReverseArc(IVertex source, double w = 0.0, object data = null) {
    114       var arc = new GenealogyGraphArc { Source = (IGenealogyGraphNode)source, Target = this, Data = data, Weight = w };
    115       base.AddReverseArc(arc);
    116     }
    117109    public IEnumerable<IGenealogyGraphNode> Parents {
    118110      get { return InArcs.Select(a => a.Source); }
Note: See TracChangeset for help on using the changeset viewer.