Class DirectedEdge<T>

Type Parameters

  • T = number

Hierarchy

Constructors

Accessors

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 represents the destination vertex of an edge. It is of type VertexId, 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 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: any
_hashCode: string
_src: any

Accessors

  • get dest(): VertexId
  • Returns VertexId

  • set dest(v): void
  • Parameters

    • v: VertexId

    Returns void

  • get hashCode(): string
  • Returns string

  • get src(): VertexId
  • Returns VertexId

  • set src(v): void
  • Parameters

    • v: VertexId

    Returns void

  • get val(): undefined | T
  • Returns undefined | T

  • set val(value): void
  • Parameters

    • value: undefined | T

    Returns void

  • get weight(): number
  • Returns number

  • set weight(v): void
  • Parameters

    • v: number

    Returns void

Methods

  • The function sets the value of the _hashCode property to the provided string.

    Parameters

    • v: string

      The parameter "v" is of type string and represents the value that will be assigned to the "_hashCode" property.

    Returns void

Generated using TypeDoc