Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/12 02:09:50 (12 years ago)
Author:
bburlacu
Message:

#1772: Fixed display of genetic fragments (received via crossover) in the GenealogyGraphView. Added parent, offspring and fragment lengths histogram.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/Analyzers/SymbolicExpressionTreeGenealogyAnalyzer.cs

    r7799 r7800  
    263263
    264264          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);
    266267            if (GlobalTraceMap.ContainsKey(parent)) {
    267268              double quality = Evaluate(parent);
     
    271272              foreach (var p in pp) {
    272273                data = ((List<ISymbolicExpressionTreeNode>)parent.IterateNodesBreadth())[((IntValue)GlobalFragmentMap[parent]).Value];
    273                 graph.AddArc(p, parent, data);
     274                graph.AddArc(p, parent, null, data);
    274275              }
    275276            }
    276             data = ((List<ISymbolicExpressionTreeNode>)child.IterateNodesBreadth())[((IntValue)GlobalFragmentMap[child]).Value];
    277             graph.AddArc(parent, child, data);
    278277          }
    279278        }
     
    334333    }
    335334
    336 
    337 
    338335    private double Evaluate(ISymbolicExpressionTree tree) {
    339336      // 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.