Class AbstractEdge<T>Abstract

Type Parameters

  • T = any

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • The above function is a protected constructor that initializes the weight, value, and hash code properties of an object.

    Type Parameters

    • T = any

    Parameters

    • Optional weight: number

      The weight parameter is an optional number that represents the weight of the object. If a value is provided, it will be assigned to the _weight property. If no value is provided, the default value of 1 will be assigned.

    • Optional val: T

      The val parameter is of type T, which means it can be any type. It is an optional parameter, meaning it can be omitted when creating an instance of the class.

    Returns AbstractEdge<T>

Properties

_hashCode: string
_val: undefined | T
_weight: number

Accessors

Methods

  • The function sets the value of the _hashCode property to the provided string.

    Parameters

    • v: string

      The parameter "v" is of type string and represents the value that will be assigned to the "_hashCode" property.

    Returns void

Generated using TypeDoc