Changeset 10677 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeCrossoverOperator.cs
- Timestamp:
- 03/28/14 16:23:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeCrossoverOperator.cs
r10674 r10677 32 32 var parents = ParentsParameter.ActualValue.ToList(); 33 33 var childVertex = (IGenealogyGraphNode<ISymbolicExpressionTree>)GenealogyGraph[parents[0]].Last(); // use the parent since it is actually the child before crossover (and the ChildParameter doesn't have a value yet) 34 var arcs = childVertex.InArcs.ToList(); 34 35 35 36 for (int i = 0; i < parents.Count; ++i) { 36 37 var nodes = parents[i].IterateNodesPrefix().ToList(); 37 var arc = childVertex.InArcs[i]; 38 arc.Data = nodes; 38 arcs[i].Data = nodes; 39 39 } 40 40 var parentVertices = childVertex.InArcs.Select(x => (IGenealogyGraphNode<ISymbolicExpressionTree>)x.Source).ToList();
Note: See TracChangeset
for help on using the changeset viewer.