Type Parameters

  • E = any

Hierarchy (view full)

Constructors

Constructors

  • The constructor function initializes a new instance of a class with the given source, destination, weight, and value.

    Type Parameters

    • E = any

    Parameters

    • src: VertexKey

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

    • dest: VertexKey

      The dest parameter is the identifier of the destination vertex for an edge.

    • Optionalweight: number

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

    • Optionalvalue: E

      The "value" parameter is an optional parameter of type E. It is used to store additional information or data associated with the edge.

    Returns MapEdge<E>