Changeset 3873 for branches/3.2/sources/HeuristicLab.GP.Operators/3.3/Manipulation/DeleteSubTreeManipulation.cs
- Timestamp:
- 05/31/10 08:31:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/sources/HeuristicLab.GP.Operators/3.3/Manipulation/DeleteSubTreeManipulation.cs
r2222 r3873 65 65 66 66 Debug.Assert(gardener.IsValidTree(gpModel.FunctionTree)); 67 // recalculate size and height68 gpModel.Size = gpModel.FunctionTree.GetSize();69 gpModel.Height = gpModel.FunctionTree.GetHeight();70 67 // root hasn't changed so don't need to update 'FunctionTree' variable 71 68 return null; … … 77 74 parent.InsertSubTree(childIndex, newFunctionTree); 78 75 Debug.Assert(gardener.IsValidTree(gpModel.FunctionTree)); 79 // recalculate size and height80 gpModel.Size = gpModel.FunctionTree.GetSize();81 gpModel.Height = gpModel.FunctionTree.GetHeight();82 76 // return an initialization operation for the newly created tree 83 77 return Util.CreateInitializationOperation(TreeGardener.GetAllSubTrees(newFunctionTree), scope);
Note: See TracChangeset
for help on using the changeset viewer.