Class UndirectedEdge<T>

Type Parameters

  • T = number

Hierarchy

Constructors

Accessors

Constructors

  • The constructor function creates an instance of a class with two vertex IDs, an optional weight, and an optional value.

    Type Parameters

    • T = number

    Parameters

    • v1: VertexId

      The first vertex ID of the edge.

    • v2: VertexId

      The parameter v2 is a VertexId, which represents the identifier of the second vertex in a graph edge.

    • 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 is used to store a value associated with the edge.

    Returns UndirectedEdge<T>

Properties

_hashCode: string
_vertices: any

Accessors

  • get hashCode(): string
  • Returns string

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

  • set val(value): void
  • Parameters

    • value: undefined | T

    Returns void

  • get vertices(): [VertexId, VertexId]
  • Returns [VertexId, VertexId]

  • set vertices(v): void
  • Parameters

    • v: [VertexId, VertexId]

    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