Hierarchy

Constructors

Properties

Accessors

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

Generated using TypeDoc