Class AbstractEdgeAbstract

Hierarchy

Constructors

Properties

Accessors

Constructors

  • The function is a protected constructor that initializes the weight and generates a unique hash code for an edge.

    Parameters

    • Optional weight: number

      The weight parameter is an optional number that represents the weight of the edge. If no weight is provided, it will default to the value of AbstractEdge.DEFAULT_EDGE_WEIGHT.

    Returns AbstractEdge

Properties

_hashCode: string
_weight: number
DEFAULT_EDGE_WEIGHT: number = 1

Accessors

Generated using TypeDoc