Specifies the type of traversal performed by tree:traverse, g_node_traverse() and
g_node_find().
The different orders are illustrated here:
in-ordervisits a node’s left child first, then the node itself, then its right child. This is the one to use if you want the output sorted according to the compare function.
pre-ordervisits a node, then its children.
post-ordervisits the node’s children, then the node itself.
level-orderis not implemented for balanced binary trees. For n-ary trees, it visits the root node first, then its children, then its grandchildren, and so on. Note that this is less efficient than the other orders.