Changeset 7800 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/Analyzers/SymbolicExpressionTreeGenealogyAnalyzer.cs
- Timestamp:
- 05/14/12 02:09:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/Analyzers/SymbolicExpressionTreeGenealogyAnalyzer.cs
r7799 r7800 263 263 264 264 foreach (var parent in parents) { 265 object data; 265 object data = ((List<ISymbolicExpressionTreeNode>)child.IterateNodesBreadth())[((IntValue)GlobalFragmentMap[child]).Value]; 266 graph.AddArc(parent, child, null, data); 266 267 if (GlobalTraceMap.ContainsKey(parent)) { 267 268 double quality = Evaluate(parent); … … 271 272 foreach (var p in pp) { 272 273 data = ((List<ISymbolicExpressionTreeNode>)parent.IterateNodesBreadth())[((IntValue)GlobalFragmentMap[parent]).Value]; 273 graph.AddArc(p, parent, data);274 graph.AddArc(p, parent, null, data); 274 275 } 275 276 } 276 data = ((List<ISymbolicExpressionTreeNode>)child.IterateNodesBreadth())[((IntValue)GlobalFragmentMap[child]).Value];277 graph.AddArc(parent, child, data);278 277 } 279 278 } … … 334 333 } 335 334 336 337 338 335 private double Evaluate(ISymbolicExpressionTree tree) { 339 336 // we perform evaluation by adding a temporary subscope with the tree in it, and calling evaluator.Apply()
Note: See TracChangeset
for help on using the changeset viewer.