Changeset 11318 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph
- Timestamp:
- 08/31/14 18:28:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs
r11257 r11318 38 38 39 39 [Storable] 40 private Dictionary<double, List<IGenealogyGraphNode>> ranks; // use a linked list for fast insertion/removal 40 private Dictionary<double, List<IGenealogyGraphNode>> ranks; 41 41 42 public Dictionary<double, List<IGenealogyGraphNode>> Ranks { 42 43 get { return ranks; } … … 56 57 57 58 [StorableConstructor] 58 protected GenealogyGraph(bool deserializing) : base(deserializing) { } 59 protected GenealogyGraph(bool deserializing) 60 : base(deserializing) { 61 } 62 59 63 public GenealogyGraph() { 60 64 Ranks = new Dictionary<double, List<IGenealogyGraphNode>>(); … … 85 89 86 90 if (idMap.ContainsKey(node.Id)) 87 throw new InvalidOperationException("Duplicate content isnot allowed in the genealogy graph.");91 throw new InvalidOperationException("Duplicate ids are not allowed in the genealogy graph."); 88 92 idMap[node.Id] = node; 89 93 } … … 118 122 119 123 public event EventHandler GraphUpdated; 124 120 125 private void OnGraphUpdated(object sender, EventArgs args) { 121 126 var updated = GraphUpdated;
Note: See TracChangeset
for help on using the changeset viewer.