The first vertex ID of the edge.
The parameter v2
is a VertexKey
, which represents the identifier of the second vertex in a
graph edge.
Optional
weight: numberThe weight parameter is an optional number that represents the weight of the edge.
Optional
value: EThe "value" parameter is an optional parameter of type E. It is used to store a value associated with the edge.
The constructor function creates an instance of a class with two vertex IDs, an optional weight, and an optional value.