Type Parameters

  • E = any

Hierarchy

Constructors

Constructors

  • The constructor function initializes the source and destination vertexMap of an edge, along with an optional 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 represents the destination vertex of an edge. It is of type VertexKey, which is likely a unique identifier for a vertex in a graph.

    • Optional weight: number

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

    • Optional value: E

      The value parameter is an optional parameter of type E. It represents the value associated with the edge.

    Returns DirectedEdge<E>

Generated using TypeDoc