code: def references(self):
          
          return [
              (tail, head)
              for tail in self.vertices
              for head in self.children(tail)
          ]
docs: Return (tail, head) pairs for each edge in the
          graph.