Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/31/14 17:11:39 (10 years ago)
Author:
bburlacu
Message:

#1772: Ported the rest of the changes to the DirectedGraph and Vertex to the GenealogyGraph and GenealogyGraphNode. Adapted tracking operators, analyzers and views.

Location:
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/FragmentGraphView.cs

    r11015 r11253  
    7070      tileDictionary.Clear();
    7171      foreach (var node in Content.Vertices) {
    72         var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)node.Content;
     72        var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)node.Data;
    7373        var tile = new SymbolicExpressionTreeTile(chart);
    7474        tile.LayoutEngine = symbolicExpressionEngine;
    75         tile.Label = "Generation " + node.Content.Rank + Environment.NewLine +
    76                      "Quality " + String.Format("{0:0.000}", node.Content.Quality);
    77         tile.Root = graphNode.Content.Root;
     75        tile.Label = "Generation " + node.Data.Rank + Environment.NewLine +
     76                     "Quality " + String.Format("{0:0.000}", node.Data.Quality);
     77        tile.Root = graphNode.Data.Root;
    7878        var tileNode = new TileLayoutNode { Tile = tile };
    7979        tileDictionary.Add(node, tileNode);
     
    117117        var aSize = aTile.Size;
    118118        var aPos = aTile.Position;
    119         var graphNode = node.Content;
     119        var graphNode = node.Data;
    120120
    121121        if (node.SubtreeIndex > 0) {
    122           var subtree = graphNode.Content.Root.NodeAt(node.SubtreeIndex);
     122          var subtree = graphNode.Data.Root.NodeAt(node.SubtreeIndex);
    123123          foreach (var s in subtree.IterateNodesPrefix()) {
    124124            var primitive = aTile.GetPrimitive(s);
     
    132132        }
    133133        if (node.FragmentIndex > 0) {
    134           var subtree = graphNode.Content.Root.NodeAt(node.FragmentIndex);
     134          var subtree = graphNode.Data.Root.NodeAt(node.FragmentIndex);
    135135          foreach (var s in subtree.IterateNodesPrefix()) {
    136136            var primitive = aTile.GetPrimitive(s);
     
    149149            var index = node.SubtreeIndex + (parent.FragmentIndex - parent.SubtreeIndex);
    150150            // some mutations create discontinuities which invalidate the index
    151             if (index >= 0 && index < graphNode.Content.Length) {
    152               var subtree = graphNode.Content.NodeAt(index);
     151            if (index >= 0 && index < graphNode.Data.Length) {
     152              var subtree = graphNode.Data.NodeAt(index);
    153153              var primitive = aTile.GetPrimitive(subtree);
    154154              primitive.Brush = new SolidBrush(Color.LightCoral);
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymboldDataAnalysisGenealogyView.cs

    r11233 r11253  
    7474      var visualNode = (VisualGenealogyGraphNode)sender;
    7575      var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)visualNode.Data;
    76       var tree = graphNode.Content;
     76      var tree = graphNode.Data;
    7777      symbolicExpressionTreeChart.Tree = tree;
    7878
     
    8080        var fragment = (IFragment<ISymbolicExpressionTreeNode>)graphNode.InArcs.Last().Data;
    8181        if (fragment != null) {
    82           treeChart_HighlightSubtree(graphNode.Content.NodeAt(fragment.Index1));
     82          treeChart_HighlightSubtree(graphNode.Data.NodeAt(fragment.Index1));
    8383        }
    8484      }
     
    9898        // perform fragment tracing
    9999        var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)genealogyGraphChart.SelectedGraphNode;
    100         var subtreeIndex = graphNode.Content.IterateNodesPrefix().ToList().IndexOf(subtree);
     100        var subtreeIndex = graphNode.Data.IterateNodesPrefix().ToList().IndexOf(subtree);
    101101        var fragmentGraph = SymbolicDataAnalysisExpressionTracing.TraceSubtree(graphNode, subtreeIndex);
    102102        if (fragmentGraph.Vertices.Any()) {
     
    106106        // perform matching like it was done before
    107107        // currently there is no possibility to specify the subtree matching criteria
    108         var trees = Content.Vertices.Select(x => x.Content);
     108        var trees = Content.Vertices.Select(x => x.Data);
    109109        var matchingTrees = trees.Where(x => x.Root.ContainsSubtree(subtree, comparer));
    110110
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisExpressionLineageExplorerView.cs

    r10746 r11253  
    6464        var treeNode = new TreeNode(g.Quality.ToString(CultureInfo.InvariantCulture));
    6565        treeView.Nodes.Add(treeNode);
    66         treeMap.Add(treeNode, (ISymbolicExpressionTree)g.Content);
     66        treeMap.Add(treeNode, (ISymbolicExpressionTree)g.Data);
    6767      }
    6868    }
Note: See TracChangeset for help on using the changeset viewer.