Class AbstractVertex<T>Abstract

Type Parameters

  • T = any

Hierarchy

Accessors

Constructors

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

    Type Parameters

    • T = any

    Parameters

    • id: VertexId

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

    • Optional val: T

      The 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.

    Returns AbstractVertex<T>

Properties

_id: any
_val: any

Accessors

  • get id(): VertexId
  • Returns VertexId

  • set id(v): void
  • Parameters

    • v: VertexId

    Returns void

  • get val(): undefined | T
  • Returns undefined | T

  • set val(value): void
  • Parameters

    • value: undefined | T

    Returns void

Generated using TypeDoc