The parameter v1
is of type VertexId
and represents the first vertex in the edge.
The parameter v2
is a VertexId
, which represents the identifier of the second vertex in a
graph.
Optional
weight: numberThe weight
parameter is an optional number that represents the weight of the edge
between two vertices.
Private
_verticesStatic
DEFAULT_Generated using TypeDoc
The constructor function initializes an instance of a class with two vertex IDs and an optional weight.