Changeset 11726 for branches/HeuristicLab.EvolutionTracking
- Timestamp:
- 12/26/14 16:44:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionAfterManipulatorOperator.cs
r11694 r11726 47 47 var parent = childVertex.Parents.First().Data; 48 48 var subtree = child.Difference(parent); 49 int index = child.IterateNodesPrefix().TakeWhile(node => node != subtree).Count(); 50 var fragment = new Fragment<ISymbolicExpressionTreeNode> { Root = subtree, Index1 = index, Index2 = index }; 49 Fragment<ISymbolicExpressionTreeNode> fragment = null; 50 if (subtree != null) { 51 int index = child.IterateNodesPrefix().TakeWhile(node => node != subtree).Count(); 52 fragment = new Fragment<ISymbolicExpressionTreeNode> { Root = subtree, Index1 = index, Index2 = index }; 53 } 51 54 childVertex.InArcs.Last().Data = fragment; 52 55 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.