Example #1
0
 public TreeSorter()
 {
     Guard.IsAssignableFrom <IComparable, T>();
     this.comparison = ComparisonCore.Compare;
     this.tree       = new AVLTree <Node>(new NodeComparer(ComparisonCore.Compare));
 }
Example #2
0
 public TreeSorter(Comparison <T> comparison)
 {
     Guard.IsNotNull(comparison, nameof(comparison));
     this.comparison = comparison;
     this.tree       = new AVLTree <Node>(new NodeComparer(comparison));
 }
Example #3
0
 public TreeWalker(AVLTree <Node> tree, int size)
 {
     this.size = size;
     this.tree = tree;
 }