public myNode expand(List <myNode> exNodes) { next1 = exNodes[0]; next2 = exNodes[1]; next3 = exNodes[2]; next4 = exNodes[3]; if (next1 != null) { return(next1); } else if (next2 != null) { return(next2); } else if (next3 != null) { return(next3); } else if (next4 != null) { return(next4); } else { return(Parent); } }
public myTree(myNode root) { this.root = root; nodes.Add(root); }