(self, topicObj: Topic, how: TreeTraversal = TreeTraversal.DEPTH, onlyFiltered: bool = True)
Start traversing tree at topicObj. Note that topicObj is a
        Topic object, not a topic name. The how defines if tree should
        be traversed breadth or depth first. If onlyFiltered is
        False, then all nodes are accepted (_accept(node) not called).

        This method can be called multiple times.
Start traversing tree at topicObj. Note that topicObj is a
        Topic object, not a topic name. The how defines if tree should
        be traversed breadth or depth first. If onlyFiltered is
        False, then all nodes are accepted (_accept(node) not called).
Start traversing tree at topicObj . Note that topicObj is a Topic object not a topic name . The how defines if tree should be traversed breadth or depth first . If onlyFiltered is False then all nodes are accepted ( _accept ( node ) not called ) .
def traverse(self, topicObj: Topic, how: TreeTraversal = TreeTraversal.DEPTH, onlyFiltered: bool = True):
        """
        Start traversing tree at topicObj. Note that topicObj is a
        Topic object, not a topic name. The how defines if tree should
        be traversed breadth or depth first. If onlyFiltered is
        False, then all nodes are accepted (_accept(node) not called).

        This method can be called multiple times.
        """
        if how == TreeTraversal.MAP:
            raise NotImplementedError('not yet available')

        self.__handler._startTraversal()

        if how == TreeTraversal.BREADTH:
            self.__traverseBreadth(topicObj, onlyFiltered)
        else:
            assert how == TreeTraversal.DEPTH
            self.__traverseDepth(topicObj, onlyFiltered)

        self.__handler._doneTraversal()
def traverse ( self , topicObj : Topic , how : TreeTraversal = TreeTraversal . DEPTH , onlyFiltered : bool = True ) : if how == TreeTraversal . MAP : raise NotImplementedError ( 'not yet available' ) self . __handler . _startTraversal ( ) if how == TreeTraversal . BREADTH : self . __traverseBreadth ( topicObj , onlyFiltered ) else : assert how == TreeTraversal . DEPTH self . __traverseDepth ( topicObj , onlyFiltered ) self . __handler . _doneTraversal ( )