The id parameter is the identifier for the vertex. It is of type VertexId, which is
typically a unique identifier for each vertex in a graph.
Optional val: TThe "val" parameter is an optional parameter of type T. It is used to initialize the value of the vertex. If no value is provided, the vertex will be initialized with a default value.
Generated using TypeDoc
The constructor function initializes a vertex with an optional value.