def render(self, path=''): '''Renders the current state of the linked list. Args: path: The path where the rendered image will be saved. ''' image = DLLDrawer.draw(self) if path: util.save_file(image, path, self.name)
def render(self, path=''): '''Renders the current state of the tree. Args: path: The path where the rendered image will be saved. ''' image = BSTDrawer.draw(self) if path: util.save_file(image, path, self.name) return image