#1862 updates the C code for tree traversals but not the documentation. We should revisit this. A different structure might be appropriate now also, given we have jupyterbook.