Refactor Graph::vertices() to emit only vertices.