Change UndirectedVertex to be DirectedVertex.