Changeset 7799 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views
- Timestamp:
- 05/11/12 17:29:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/GenealogyGraphView.cs
r7792 r7799 99 99 _selectedVisualSymbolicExpressionTreeNode = symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(nodes[index + fragments.Count - 1]); 100 100 var subtree = _selectedVisualSymbolicExpressionTreeNode.SymbolicExpressionTreeNode; 101 foreach (var visualNode in subtree.IterateNodes Postfix().Select(node => symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(node))) {101 foreach (var visualNode in subtree.IterateNodesBreadth().Select(node => symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(node))) { 102 102 visualNode.FillColor = Color.LightBlue; 103 103 } 104 104 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 } 105 117 } 106 118 }
Note: See TracChangeset
for help on using the changeset viewer.