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