(v)
| 13832 | // either given by the leftmost child of v or by the thread of v. The function |
| 13833 | // returns null if and only if v is on the highest level of its subtree. |
| 13834 | function nextLeft(v) { |
| 13835 | var children = v.children; |
| 13836 | return children ? children[0] : v.t; |
| 13837 | } |
| 13838 | |
| 13839 | // This function works analogously to nextLeft. |
| 13840 | function nextRight(v) { |