Hierarchy

Constructors

  • The constructor function initializes the source and destination vertices of an edge, with an optional weight.

    Parameters

    • src: VertexId

      The src parameter is the source vertex ID. It represents the starting point of an edge in a graph.

    • dest: VertexId

      The dest parameter is the identifier of the destination vertex. It represents the vertex to which an edge is directed.

    • Optional weight: number

      The weight parameter is an optional number that represents the weight of the edge between two vertices.

    Returns DirectedEdge

Properties

_dest: VertexId
_src: VertexId
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 VertexId

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

  • 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