def METHOD_NAME(self) -> Generator[Vertex, None, None]:
    """Builds each vertex in the graph and yields it."""
    sorted_vertices = self.topological_sort()
    logger.debug("Sorted vertices: %s", sorted_vertices)
    yield from sorted_vertices