Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/27/14 02:18:08 (10 years ago)
Author:
bburlacu
Message:

#1772: Fixed genealogy graph creation.

File:
1 edited

Legend:

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

    r10674 r10675  
    226226            IsElite = true
    227227          };
    228           var previousVertex = GenealogyGraph[elite].Last();
     228          var previousVertex = (IGenealogyGraphNode<T>)GenealogyGraph[elite].Last();
    229229          GenealogyGraph.AddVertex(vertex);
    230230          previousVertex.AddForwardArc(vertex);
    231231          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;
    232234        }
    233235      }
Note: See TracChangeset for help on using the changeset viewer.