Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/13/14 17:20:36 (11 years ago)
Author:
bburlacu
Message:

#1772: Added partially working implementation of a bottom-up distance calculator for symbolic expression trees. Changed latex formatter to also return a map of node ids (useful when wanting to display trees side by side).

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

Legend:

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

    r10888 r11015  
    6969      var chart = symbolicExpressionChartControl.Chart;
    7070      tileDictionary.Clear();
    71       foreach (var node in Content.Nodes) {
     71      foreach (var node in Content.Vertices) {
    7272        var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)node.Content;
    7373        var tile = new SymbolicExpressionTreeTile(chart);
     
    7979        tileDictionary.Add(node, tileNode);
    8080      }
    81       foreach (var node in Content.Nodes.Where(n => n.OutArcs.Any())) {
     81      foreach (var node in Content.Vertices.Where(n => n.OutArcs.Any())) {
    8282        var layoutNode = tileDictionary[node];
    8383        layoutNode.Children = new List<TileLayoutNode>(node.OutArcs.Select(a => tileDictionary[(FragmentNode)a.Target]));
     
    8787    private void Draw() {
    8888      var chart = symbolicExpressionChartControl.Chart;
    89       var nodes = Content.Nodes.ToList();
     89      var nodes = Content.Vertices.ToList();
    9090      var root = nodes[0];
    9191      var fragmentRoot = tileDictionary[root];
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymboldDataAnalysisGenealogyView.cs

    r10903 r11015  
    100100        var subtreeIndex = graphNode.Content.IterateNodesPrefix().ToList().IndexOf(subtree);
    101101        var fragmentGraph = SymbolicDataAnalysisExpressionTracing.TraceSubtree(graphNode, subtreeIndex);
    102         if (fragmentGraph.Nodes.Any()) {
     102        if (fragmentGraph.Vertices.Any()) {
    103103          MainFormManager.MainForm.ShowContent(fragmentGraph); // display the fragment graph on the screen
    104104        }
Note: See TracChangeset for help on using the changeset viewer.