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_Starting from TypeScript version 5.0 and onwards, the use of distinct access modifiers for Getters and Setters is not permitted. As an alternative, to ensure compatibility, it is necessary to adopt a Java-style approach for Setters (using the same name as the property) while utilizing separate method names for Getters.
Starting from TypeScript version 5.0 and onwards, the use of distinct access modifiers for Getters and Setters is not permitted. As an alternative, to ensure compatibility, it is necessary to adopt a Java-style approach for Setters (using the same name as the property) while utilizing separate method names for Getters.
Generated using TypeDoc
The function is a protected constructor that initializes the weight and generates a unique hash code for an edge.