Changeset 11476 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking
- Timestamp:
- 10/16/14 20:28:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/TraceCalculator.cs
r11473 r11476 34 34 tc.Trace(node, subtreeIndex); 35 35 return tc.TraceGraph; 36 } 37 38 public IGenealogyGraph<ISymbolicExpressionTree> Trace(IGenealogyGraphNode<ISymbolicExpressionTree> node, int subtreeIndex) { 39 traceGraph.Clear(); 40 traceMap.Clear(); 41 Trace(node, subtreeIndex, null); 42 return traceGraph; 36 43 } 37 44 … … 56 63 /// <param name="si">The index of the traced subtree</param> 57 64 /// <param name="last">The last added node in the trace graph</param> 58 p ublicvoid Trace(IGenealogyGraphNode<ISymbolicExpressionTree> g, int si, IGenealogyGraphNode<ISymbolicExpressionTree> last = null) {65 private void Trace(IGenealogyGraphNode<ISymbolicExpressionTree> g, int si, IGenealogyGraphNode<ISymbolicExpressionTree> last = null) { 59 66 while (g.Parents.Any()) { 60 67 var parents = g.Parents.ToList(); … … 191 198 if (arc != null) 192 199 return; 193 arc = new GenealogyGraphArc(last, n); 194 arc.Data = td; 200 arc = new GenealogyGraphArc(last, n) { Data = td }; 195 201 traceGraph.AddArc(arc); 196 202 }
Note: See TracChangeset
for help on using the changeset viewer.