Class AbstractEdgeAbstract

Hierarchy

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

Methods

  • 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.

    Returns string

  • 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.

    Returns number

Generated using TypeDoc