(self)
Reset the internal node traversal state. Must be called prior to visiting future nodes.

        :return: None
Reset the internal node traversal state. Must be called prior to visiting future nodes.
Reset the internal node traversal state . Must be called prior to visiting future nodes .
def reset(self):
        """
        Reset the internal node traversal state. Must be called prior to visiting future nodes.

        :return: None
        """

        self._sorted_nodes.clear()
        self._nodes_set.clear()
        self._node_to_index.clear()
        self._reached_fixedpoint.clear()

        for i, n in enumerate(self.sort_nodes()):
            self._node_to_index[n] = i
            binary_insert(self._sorted_nodes, n, lambda elem: self._node_to_index[elem])
            self._nodes_set.add(n)
def reset ( self ) : self . _sorted_nodes . clear ( ) self . _nodes_set . clear ( ) self . _node_to_index . clear ( ) self . _reached_fixedpoint . clear ( ) for i , n in enumerate ( self . sort_nodes ( ) ) : self . _node_to_index [ n ] = i binary_insert ( self . _sorted_nodes , n , lambda elem : self . _node_to_index [ elem ] ) self . _nodes_set . add ( n )