Class DirectedVertex<T>

Type Parameters

  • T = number

Hierarchy

Constructors

Accessors

Constructors

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

    Type Parameters

    • T = number

    Parameters

    • id: VertexId

      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: T

      The "val" parameter is an optional parameter of type T. It is used to specify the value associated with the vertex.

    Returns DirectedVertex<T>

Accessors

Generated using TypeDoc