Modified Vertex to include a visited flag.

Modified Vertex to include a visited flag.