The src
parameter is the source vertex ID. It represents the starting point of an edge in
a graph.
The dest
parameter is the identifier of the destination vertex. It represents the vertex
to which an edge is directed.
Optional
weight: numberThe weight
parameter is an optional number that represents the weight of the edge
between two vertices.
Private
_destPrivate
_srcStatic
DEFAULT_Generated using TypeDoc
The constructor function initializes the source and destination vertices of an edge, with an optional weight.