code: def clear(self):
          
          for n in self.nodes():
              if self.nodes[n]["type"] == "variable":
                  self.nodes[n]["value"] = None
              elif self.nodes[n]["type"] == "function":
                  self.nodes[n]["func_visited"] = False
docs: Clear variable nodes for next computation.