- Timestamp:
- 06/26/12 15:29:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTree.cs
r7795 r8126 23 23 using System.Collections.Generic; 24 24 using System.Drawing; 25 using System.Linq; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 77 78 public IEnumerable<ISymbolicExpressionTreeNode> IterateNodesBreadth() { 78 79 if (root == null) 79 return new SymbolicExpressionTreeNode[0];80 return Enumerable.Empty<SymbolicExpressionTreeNode>(); 80 81 return root.IterateNodesBreadth(); 81 82 } … … 83 84 public IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPrefix() { 84 85 if (root == null) 85 return new SymbolicExpressionTreeNode[0];86 return Enumerable.Empty<SymbolicExpressionTreeNode>(); 86 87 return root.IterateNodesPrefix(); 87 88 } 88 89 public IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPostfix() { 89 90 if (root == null) 90 return new SymbolicExpressionTreeNode[0];91 return Enumerable.Empty<SymbolicExpressionTreeNode>(); 91 92 return root.IterateNodesPostfix(); 92 93 }
Note: See TracChangeset
for help on using the changeset viewer.