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 / IGraph
Interface representing a generic graph structure.
• T
The type of data held by the nodes in the graph.
addEdge(
node):void
• node: IGraphEdge<T>
void
addNode(
node):void
• node: IGraphNode<T>
void
getEdges(
node):IGraphEdge<T>[]
• node: IGraphNode<T>
IGraphEdge<T>[]
getNeighbors(
node):IGraphNode<T>[]
• node: IGraphNode<T>
IGraphNode<T>[]