(self, node, *args, **kwargs)
Tree traversal from top to bottom.

        Args:
            node(:class:`business_logic.models.Node`): node for starting tree traversal
            *args: arbitrary args which should be passed to :func:`business_logic.models.NodeVisitor.visit`
            **kwargs: arbitrary kwargs which should be passed to :func:`business_logic.models.NodeVisitor.visit`
Tree traversal from top to bottom.
Tree traversal from top to bottom .
def preorder(self, node, *args, **kwargs):
        """
        Tree traversal from top to bottom.

        Args:
            node(:class:`business_logic.models.Node`): node for starting tree traversal
            *args: arbitrary args which should be passed to :func:`business_logic.models.NodeVisitor.visit`
            **kwargs: arbitrary kwargs which should be passed to :func:`business_logic.models.NodeVisitor.visit`
        """
        self.visit(node, *args, **kwargs)
        for child in self.get_children(node):
            self.preorder(child, *args, **kwargs)
def preorder ( self , node , * args , * * kwargs ) : self . visit ( node , * args , * * kwargs ) for child in self . get_children ( node ) : self . preorder ( child , * args , * * kwargs )