public IGenericTree <T> AddChild(IGenericTree <T> subtree) { subtree.Parent = this; this.Children.Add(subtree); return(this); }
public Treeterator(IGenericTree <T> tree) { this.Tree = tree; this.finished = false; this.dfsNodes = new Stack <IGenericTree <T> >(); this.dfsNodes.Push(this.Tree); }
public void Reset() { this.currentNode = this.tree; }