a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / GraphEdge
Represents an edge in a graph structure.
• T
The type of the node.
IGraphEdge
<T
>new GraphEdge<
T
>(source
,destination
,weight
):GraphEdge
<T
>
• source: IGraphNode
<T
>
• destination: IGraphNode
<T
>
• weight: number
= 1
GraphEdge
<T
>
shared/ds/graph/GraphEdge.ts:9
getDestination():
IGraphNode
<T
>
Retrieves the destination IGraphNode for the current instance.
IGraphNode
<T
>
The destination node.
shared/ds/graph/GraphEdge.ts:29
getSource():
IGraphNode
<T
>
Retrieves the source node of the graph.
IGraphNode
<T
>
The source graph node.
shared/ds/graph/GraphEdge.ts:20
getWeight():
number
Retrieves the weight of the object.
number
The weight of the object.