Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/12 17:29:55 (12 years ago)
Author:
bburlacu
Message:

#1772: Sanitized IGenealogyGraph interface, implemented new graph arc semantics (an arc signifies an interaction between the two nodes that it connects and has a data object containing specific information about the interaction).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/GenealogyGraphView.cs

    r7792 r7799  
    9999          _selectedVisualSymbolicExpressionTreeNode = symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(nodes[index + fragments.Count - 1]);
    100100          var subtree = _selectedVisualSymbolicExpressionTreeNode.SymbolicExpressionTreeNode;
    101           foreach (var visualNode in subtree.IterateNodesPostfix().Select(node => symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(node))) {
     101          foreach (var visualNode in subtree.IterateNodesBreadth().Select(node => symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(node))) {
    102102            visualNode.FillColor = Color.LightBlue;
    103103          }
    104104          symbolicExpressionTreeChart.Repaint();
     105        }
     106      }
     107      var tree = symbolicExpressionTreeChart.Tree;
     108      var graphNode = Content.GetNode(tree);
     109      if (graphNode.InEdges != null) {
     110        var arc = graphNode.InEdges.Find(a => a.Data != null);
     111        if (arc != null) {
     112          var fragment = arc.Data as ISymbolicExpressionTreeNode;
     113          foreach (var node in fragment.IterateNodesBreadth()) {
     114            var visualNode = symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(node);
     115            visualNode.FillColor = Color.LightGreen;
     116          }
    105117        }
    106118      }
Note: See TracChangeset for help on using the changeset viewer.