Represents a vertex in a graph, containing an attribute of type V and a collection of adjacencies denoting its connections to other vertices.
Vertex is immutable. The mutable discovered flag has been removed from all implementations; visited-node tracking is now handled by the immutable VisitedSet[V] typeclass inside the Visitor V1.2.0 traversal engine.
Type parameters
V
the type of the attribute associated with the vertex.