Changeset 10903 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph
- Timestamp:
- 05/28/14 14:18:24 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs
r10897 r10903 37 37 set { ranks = value; } 38 38 } 39 public new IEnumerable<IGenealogyGraphNode> Nodes {40 get { return from n in base. Nodes select (IGenealogyGraphNode)n; }39 public new IEnumerable<IGenealogyGraphNode> Vertices { 40 get { return from n in base.Vertices select (IGenealogyGraphNode)n; } 41 41 } 42 42 … … 58 58 source.AddForwardArc(arc); 59 59 target.AddReverseArc(arc); 60 arcs.Add(arc); 60 61 return arc; 61 62 } … … 97 98 set { ranks = value; } 98 99 } 99 public new IEnumerable<IGenealogyGraphNode<T>> Nodes {100 get { return from n in base. Nodes select (IGenealogyGraphNode<T>)n; }100 public new IEnumerable<IGenealogyGraphNode<T>> Vertices { 101 get { return from n in base.Vertices select (IGenealogyGraphNode<T>)n; } 101 102 } 102 103 // contructors … … 132 133 source.AddForwardArc(arc); 133 134 target.AddReverseArc(arc); 135 arcs.Add(arc); 134 136 return arc; 135 137 } 136 IEnumerable<IGenealogyGraphNode> IGenealogyGraph. Nodes {137 get { return Nodes; }138 IEnumerable<IGenealogyGraphNode> IGenealogyGraph.Vertices { 139 get { return Vertices; } 138 140 } 139 141 public event EventHandler GraphUpdated; -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraphArc.cs
r10888 r10903 31 31 protected GenealogyGraphArc(bool deserializing) : base(deserializing) { } 32 32 protected GenealogyGraphArc(GenealogyGraphArc original, Cloner cloner) 33 : base(original, cloner) { 34 this.Target = original.Target; 35 this.Source = original.Source; 36 this.Label = original.Label; 37 this.Weight = original.Weight; 38 this.Data = original.Data; 39 } 33 : base(original, cloner) { } 40 34 41 35 protected GenealogyGraphArc() { } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/Interfaces/IGenealogyGraph.cs
r10888 r10903 26 26 public interface IGenealogyGraph : IDirectedGraph { 27 27 Dictionary<double, List<IGenealogyGraphNode>> Ranks { get; } 28 new IEnumerable<IGenealogyGraphNode> Nodes { get; }28 new IEnumerable<IGenealogyGraphNode> Vertices { get; } 29 29 } 30 30 31 31 public interface IGenealogyGraph<T> : IGenealogyGraph where T : class, IItem { 32 new IEnumerable<IGenealogyGraphNode<T>> Nodes { get; }32 new IEnumerable<IGenealogyGraphNode<T>> Vertices { get; } 33 33 } 34 34 }
Note: See TracChangeset
for help on using the changeset viewer.