code: def delete_nodes(self, nodes: Iterable[str]):
          
          for n in nodes:
              if self.has_node(n):
                  self.remove_node(n)
docs: Iterate over a set of nodes and remove the ones that are present in
          the graph.