Class DirectedVertex<V>

Type Parameters

  • V = any

Hierarchy (view full)

Constructors

Constructors

  • The constructor function initializes a vertex with an optional value.

    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 within a graph or data structure.

    • Optionalvalue: V

      The "value" parameter is an optional parameter of type V. It is used to initialize the value of the vertex. If no value is provided, the vertex will be initialized with a default value.

    Returns DirectedVertex<V>