Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/31/14 17:24:36 (10 years ago)
Author:
bburlacu
Message:

#1772: Tracking building blocks: worked on tracking logic and on the FragmentView.

File:
1 edited

Legend:

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

    r10677 r10685  
    4242
    4343    public new IEnumerable<IGenealogyGraphArc> InArcs {
    44       get {
    45         return base.InArcs.Cast<IGenealogyGraphArc>().ToList();
    46       }
     44      get { return base.InArcs.Cast<IGenealogyGraphArc>().ToList(); }
    4745      set { base.InArcs = value; }
    4846    }
    4947    public new IEnumerable<IGenealogyGraphArc> OutArcs {
    50       get {
    51         return base.OutArcs.Cast<IGenealogyGraphArc>().ToList();
    52       }
     48      get { return base.OutArcs.Cast<IGenealogyGraphArc>().ToList(); }
    5349      set { base.InArcs = value; }
    5450    }
     
    111107      return Quality.CompareTo(other.Quality);
    112108    }
    113 
    114109    public new void AddForwardArc(IVertex target, double w = 0.0, object data = null) {
    115110      var arc = new GenealogyGraphArc { Source = this, Target = (IGenealogyGraphNode)target, Data = data, Weight = w };
     
    120115      base.AddReverseArc(arc);
    121116    }
    122 
    123117    public IEnumerable<IGenealogyGraphNode> Parents {
    124       get {
    125         return InArcs == null ? Enumerable.Empty<IGenealogyGraphNode>() : InArcs.Select(a => a.Source);
    126       }
     118      get { return InArcs.Select(a => a.Source); }
    127119    }
    128 
    129120    public IEnumerable<IGenealogyGraphNode> Children {
    130       get { return OutArcs == null ? Enumerable.Empty<IGenealogyGraphNode>() : OutArcs.Select(a => a.Source); }
     121      get { return OutArcs.Select(a => a.Target); }
    131122    }
    132123  }
     
    147138      return new GenealogyGraphNode<T>(this, cloner);
    148139    }
    149 
    150140    public new IEnumerable<IGenealogyGraphNode<T>> Parents {
    151       get {
    152         return base.Parents.Select(p => (IGenealogyGraphNode<T>)p);
    153       }
     141      get { return base.Parents.Select(p => (IGenealogyGraphNode<T>)p); }
    154142    }
    155 
    156143    public new IEnumerable<IGenealogyGraphNode<T>> Children {
    157       get {
    158         return base.Children.Select(c => (IGenealogyGraphNode<T>)c);
    159       }
     144      get { return base.Children.Select(c => (IGenealogyGraphNode<T>)c); }
    160145    }
    161 
    162146    public new IEnumerable<IGenealogyGraphNode<T>> Ancestors {
    163147      get { return base.Ancestors.Select(x => (IGenealogyGraphNode<T>)x); }
    164148    }
    165 
    166149    public new IEnumerable<IGenealogyGraphNode<T>> Descendants {
    167150      get { return base.Descendants.Select(x => (IGenealogyGraphNode<T>)x); }
Note: See TracChangeset for help on using the changeset viewer.