Storing Search Information in Vertices

BFS and DFS require the following search information about vertices: We add methods for this to the Vertex interface: