browson/node.py
def dfwalk(self, preorder=yield_node, postorder=None):
        """Depth-first walk, yields values yielded from visitor function."""
        if preorder is not None:
            yield from preorder(self)
        for child in self.children:
            yield from child.dfwalk(preorder, postorder)
        if postorder is not None:
            yield from postorder(self)
Depth-first walk, yields values yielded from visitor function.
Depth-first walk, yields values yielded from visitor function.
Depth - first walk yields values yielded from visitor function .
def dfwalk(self, preorder=yield_node, postorder=None):
        if preorder is not None:
            yield from preorder(self)
        for child in self.children:
            yield from child.dfwalk(preorder, postorder)
        if postorder is not None:
            yield from postorder(self)
def dfwalk ( self , preorder = yield_node , postorder = None ) : if preorder is not None : yield from preorder ( self ) for child in self . children : yield from child . dfwalk ( preorder , postorder ) if postorder is not None : yield from postorder ( self )
Depth-first walk, yields values yielded from visitor function.
Depth - first walk yields values yielded from visitor function .
"""Depth-first walk, yields values yielded from visitor function."""
self
preorder
postorder