<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_nodes(self, nodes: Iterable[str]):
 """ Iterate over a set of nodes and remove the ones that are present in the graph. """

        for n in nodes:
            if self.has_node(n):
                self.remove_node(n)