Class UndirectedEdge

Hierarchy

Constructors

Properties

Accessors

Constructors

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

    Parameters

    • v1: VertexId

      The parameter v1 is of type VertexId and represents the first vertex in the edge.

    • v2: VertexId

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

    • Optional weight: number

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

    Returns UndirectedEdge

Properties

_vertices: [VertexId, VertexId]
DEFAULT_EDGE_WEIGHT: number = 1

Accessors

Generated using TypeDoc