def simplified_edges(self):
for group, edgelist in self.edges.items():<EOL><INDENT>for u, v, d in edgelist:<EOL><INDENT>yield (u, v)<EOL><DEDENT><DEDENT>
A generator for getting all of the edges without consuming extra
memory.