Class UndirectedVertex<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 initialize the value of the vertex. If no value is provided, the vertex will be initialized with a default value.

    Returns UndirectedVertex<T>

Accessors

Generated using TypeDoc