Changeset 10890 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 05/26/14 16:28:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionAfterCrossoverOperator.cs
r10833 r10890 30 30 public class SymbolicDataAnalysisExpressionAfterCrossoverOperator : AfterCrossoverOperator<ISymbolicExpressionTree> { 31 31 public override IOperation Apply() { 32 var child = ChildParameter.ActualValue; 33 var childVertex = (IGenealogyGraphNode)GenealogyGraph[child]; 32 var childVertex = (IGenealogyGraphNode<ISymbolicExpressionTree>)GenealogyGraph[ChildParameter.ActualValue]; 34 33 var arcs = childVertex.InArcs.ToList(); 35 34 var nodes0 = (List<ISymbolicExpressionTreeNode>)arcs[0].Data; 36 35 var nodes1 = (List<ISymbolicExpressionTreeNode>)arcs[1].Data; 37 var childNodes = child .IterateNodesPrefix().ToList();36 var childNodes = childVertex.Content.IterateNodesPrefix().ToList(); 38 37 IFragment<ISymbolicExpressionTreeNode> fragment = null; 39 38 for (int i = 0; i < Math.Min(nodes0.Count, childNodes.Count); ++i) {
Note: See TracChangeset
for help on using the changeset viewer.