Abstract Protected constructorThe id parameter is of type VertexId and represents the identifier of the vertex. It is
used to uniquely identify the vertex object.
Optional val: TThe parameter "val" is an optional parameter of type T. It is used to assign a value to the vertex. If no value is provided, it will be set to undefined.
Private _idPrivate _valGenerated using TypeDoc
The function is a protected constructor that takes an id and an optional value as parameters.