Changeset 7785 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/GenealogyGraphView.cs
- Timestamp:
- 05/09/12 09:56:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/GenealogyGraphView.cs
r7779 r7785 94 94 var nodes = symbolicExpressionTreeChart.Tree.IterateNodesPostfix().ToArray(); 95 95 var fragments = _selectedVisualSymbolicExpressionTreeNode.SymbolicExpressionTreeNode.IterateNodesPostfix().ToArray(); 96 int index = SymbolicExpressionTree GenealogyGraph.FindMatch(nodes, fragments, similarityModeSelector.SelectedIndex);96 int index = SymbolicExpressionTreeMatching.FindMatch(nodes, fragments, similarityModeSelector.SelectedIndex); 97 97 if (index != -1) { 98 98 _selectedVisualSymbolicExpressionTreeNode = symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(nodes[index + fragments.Count() - 1]); … … 143 143 genealogyGraphChart.ClearAllNodes(); // clear node colors 144 144 // color each graph node according to the degree to which it matches the selected tree fragment 145 foreach (var i in Enum.GetValues(typeof(SymbolicExpressionTree GenealogyGraph.SimilarityLevel)).Cast<int>().Reverse()) {145 foreach (var i in Enum.GetValues(typeof(SymbolicExpressionTreeMatching.SimilarityLevel)).Cast<int>().Reverse()) { 146 146 var owners = genealogyGraphChart.Graph.TraceFragment(treeNode, i).ToList(); 147 147 if (owners.Any()) genealogyGraphChart.HighlightNodes(owners, colors[i]); // highlight matching individuals from the genealogy
Note: See TracChangeset
for help on using the changeset viewer.