Changeset 10886 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs
- Timestamp:
- 05/22/14 13:49:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs
r10833 r10886 40 40 get { return from n in base.Nodes select (IGenealogyGraphNode)n; } 41 41 } 42 43 public IGenealogyGraphArc AddArc(IGenealogyGraphNode source, IGenealogyGraphNode target) { 44 var arc = new GenealogyGraphArc(source, target); 45 source.AddForwardArc(arc); 46 target.AddReverseArc(arc); 47 return arc; 48 } 49 42 50 protected GenealogyGraph(GenealogyGraph original, Cloner cloner) 43 51 : base(original, cloner) { … … 98 106 get { return from n in base.Nodes select (IGenealogyGraphNode<T>)n; } 99 107 } 108 109 public IGenealogyGraphArc AddArc(IGenealogyGraphNode source, IGenealogyGraphNode target) { 110 var arc = new GenealogyGraphArc(source, target); 111 source.AddForwardArc(arc); 112 target.AddReverseArc(arc); 113 return arc; 114 } 115 100 116 // contructors 101 117 protected GenealogyGraph(GenealogyGraph<T> original, Cloner cloner)
Note: See TracChangeset
for help on using the changeset viewer.