
############
TreeWalkMode
############

.. js:data:: TreeWalkMode

   Possible modes to use when performing operations which allow for customization of the way the model tree is walked.
   
   
   Index
   =====
   
   .. rubric:: Enumeration Members
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~TreeWalkMode.Default`
   * :js:data:`~TreeWalkMode.PerNode`
   
   




Enumeration Members
===================

.. js:data:: TreeWalkMode.Default

   .. rst-class:: sig-pretty-signature
   
      | Default: *0*
   
   The default tree walk mode which visits every node starting from the root.
   
   This mode will work in the general case, but may prove to be less performant when operating on large trees.
   



.. js:data:: TreeWalkMode.PerNode

   .. rst-class:: sig-pretty-signature
   
      | PerNode: *1*
   
   Perform multiple synchronous walks beginning at each node passed into the function.
   
   This optimized mode mode can speed up performance by greatly reducing the amount of nodes that need to be walked for large model trees. Use this mode if the nodes you are operating on are contained in distict subtrees, or primarily leaf nodes.
   
   Note that if the input contains nodes which are in the same subtree, but contain conflicting values, this method may produce undesirable results, and the default method should be used instead.
   





