Class AbstractVertex<V>Abstract

Type Parameters

  • V = any

Hierarchy (view full)

Constructors

Constructors

  • The function is a protected constructor that takes an key and an optional value as parameters.

    Type Parameters

    • V = any

    Parameters

    • key: VertexKey

      The key parameter is of type VertexKey and represents the identifier of the vertex. It is used to uniquely identify the vertex object.

    • Optionalvalue: V

      The parameter "value" is an optional parameter of type V. It is used to assign a value to the vertex. If no value is provided, it will be set to undefined.

    Returns AbstractVertex<V>