Class DirectedEdge<T>

Type Parameters

  • T = number

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

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

    Type Parameters

    • T = number

    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 for an edge.

    • Optional weight: number

      The weight parameter is an optional number that represents the weight of the edge. It is used to assign a numerical value to the edge, which can be used in algorithms such as shortest path algorithms. If the weight is not provided, it will default to undefined.

    • Optional val: T

      The "val" parameter is an optional parameter of type T. It represents the value associated with the edge.

    Returns DirectedEdge<T>

Properties

_dest: VertexId
_hashCode: string
_src: VertexId

Accessors

Methods

Generated using TypeDoc