Example #1
0
        public IGenericTree <T> AddChild(IGenericTree <T> subtree)
        {
            subtree.Parent = this;
            this.Children.Add(subtree);

            return(this);
        }
Example #2
0
 public Treeterator(IGenericTree <T> tree)
 {
     this.Tree     = tree;
     this.finished = false;
     this.dfsNodes = new Stack <IGenericTree <T> >();
     this.dfsNodes.Push(this.Tree);
 }
Example #3
0
 public void Reset()
 {
     this.currentNode = this.tree;
 }