Class UndirectedEdge<V>

Type Parameters

  • V = number

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

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

    Type Parameters

    • V = 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: V

      The "val" parameter is an optional parameter of type V. It is used to store a value associated with the edge.

    Returns UndirectedEdge<V>

Properties

_hashCode: string
_vertices: [VertexId, VertexId]

Accessors

Methods

Generated using TypeDoc