- Timestamp:
- 09/21/15 01:03:12 (9 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/GenealogyAnalyzer.cs
r12951 r12958 333 333 //trim 334 334 if (TrimOlderGenerations) { 335 for (int i = 0; i < generation - 1; ++i) { 336 var vertices = genealogyGraph.GetByRank(i).ToList(); 337 genealogyGraph.RemoveVertices(vertices); 338 } 335 var vertices = genealogyGraph.Vertices.Where(x => x.Rank < generation - 1).ToList(); // select all ranks older than the previous generation 336 genealogyGraph.RemoveVertices(vertices); 339 337 } 340 338 -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs
r11969 r12958 121 121 base.RemoveVertex(vertex); 122 122 } 123 124 public override void RemoveVertices(IEnumerable<IVertex> vertices) { 125 foreach (var v in vertices) 126 this.RemoveVertex(v); 127 } 128 123 129 public IGenealogyGraphNode GetByContent(object content) { 124 130 IGenealogyGraphNode result;
Note: See TracChangeset
for help on using the changeset viewer.