Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/15 01:03:12 (9 years ago)
Author:
bburlacu
Message:

#1772: Properly remove older generations in the genealogy graph. Fix namespaces in the schema diversification operators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/GenealogyAnalyzer.cs

    r12951 r12958  
    333333      //trim
    334334      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);
    339337      }
    340338
Note: See TracChangeset for help on using the changeset viewer.