The src
parameter is the source vertex ID. It represents the starting point of an edge in
a graph.
The dest
parameter represents the destination vertex of an edge. It is of type
VertexId
, which is likely a unique identifier for a vertex in a graph.
Optional
weight: numberThe weight parameter is an optional number that represents the weight of the edge.
Optional
val: TThe val
parameter is an optional parameter of type T
. It represents the value associated with
the edge.
Private
_destProtected
_hashPrivate
_srcProtected
_setGenerated using TypeDoc
The constructor function initializes the source and destination vertices of an edge, along with an optional weight and value.