Changeset 9996 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/LayoutEngines/ReingoldTilfordLayoutEngine.cs
- Timestamp:
- 09/20/13 10:10:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/LayoutEngines/ReingoldTilfordLayoutEngine.cs
r9963 r9996 46 46 root = value; 47 47 } 48 }49 50 /// <summary>51 /// Returns a string containing all the coordinates (useful for debugging).52 /// </summary>53 /// <returns></returns>54 public string DumpCoordinates() {55 if (nodes == null || nodes.Count == 0) return string.Empty;56 return nodes.Values.Aggregate("", (current, node) => current + (node.X + " " + node.Y + Environment.NewLine));57 48 } 58 49 … … 161 152 162 153 private void SecondWalk(ILayoutNode<T> v, float m) { 163 if (!nodes.Values.Contains(v)) throw new Exception("Layout node not present in dictionary!");164 154 v.X = v.Prelim + m; 165 155 v.Y = v.Level * minVerticalSpacing;
Note: See TracChangeset
for help on using the changeset viewer.