(v)
| 138213 | // either given by the leftmost child of v or by the thread of v. The function |
| 138214 | // returns null if and only if v is on the highest level of its subtree. |
| 138215 | function nextLeft(v) { |
| 138216 | var children = v.children; |
| 138217 | return children ? children[0] : v.t; |
| 138218 | } |
| 138219 | // This function works analogously to nextLeft. |
| 138220 | function nextRight(v) { |
| 138221 | var children = v.children; |