def reset(self):
        """Reset before re-using the cell for another graph."""
        self._init_counter = -1
        self._counter = -1
        for cell in self._children.values():
            cell.reset()
def reset ( self ) : self . _init_counter = - 1 self . _counter = - 1 for cell in self . _children . values ( ) : cell . reset ( )
Reset before re-using the cell for another graph.