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.
Protected _hashProtected _weightProtected _setGenerated using TypeDoc
The function is a protected constructor that initializes the weight and generates a unique hash code for an edge.