Changeset 10675 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/GenealogyAnalyzer.cs
- Timestamp:
- 03/27/14 02:18:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/GenealogyAnalyzer.cs
r10674 r10675 226 226 IsElite = true 227 227 }; 228 var previousVertex = GenealogyGraph[elite].Last();228 var previousVertex = (IGenealogyGraphNode<T>)GenealogyGraph[elite].Last(); 229 229 GenealogyGraph.AddVertex(vertex); 230 230 previousVertex.AddForwardArc(vertex); 231 231 vertex.AddReverseArc(previousVertex); 232 vertex.InArcs.Last().Data = previousVertex.InArcs.Last().Data; // save the fragment in case there is one 233 vertex.Id = previousVertex.Id; 232 234 } 233 235 }
Note: See TracChangeset
for help on using the changeset viewer.