def __iter__(self):
for n in self.nodes():<EOL><INDENT>yield n<EOL><DEDENT>
Return a iterator passing through all nodes in the graph.

@rtype:  iterator
@return: Iterator passing through all nodes in the graph.