Abstract
Protected
constructorOptional
weight: numberThe 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
.
Private
_hashPrivate
_weightStatic
DEFAULT_Generated using TypeDoc
The function is a protected constructor that initializes the weight and generates a unique hash code for an edge.