code: def add_generator(self, generator):
          
          if generator not in self._generators and isinstance(generator,
                                                              GeneratorDing0):
              self._generators.append(generator)
              self.graph_add_node(generator)
docs: Adds a generator to _generators and grid graph if not already existing
          
          Parameters
          ----------
          generator : GridDing0
              Description #TODO