Methods
addEdge
- addEdge(from: string, to: string, through: string, distance: number, duration: number, cost: number): void
-
Parameters
-
from: string
-
to: string
-
through: string
-
distance: number
-
duration: number
-
cost: number
Returns void
getAdjacencyList
- getAdjacencyList(): IEdge[][]
getBreakPoint
- getBreakPoint(position: number): function
-
Parameters
Returns function
-
- (on: string): Promise<void>
-
Parameters
Returns Promise<void>
getLabel
- getLabel(position: number): string
-
Parameters
Returns string
getNodeIndex
- getNodeIndex(label: string): number
-
Parameters
Returns number
getNodeMap
- getNodeMap(): Map<string, number>
-
Returns Map<string, number>
getReverseAdjacencyList
- getReverseAdjacencyList(): IEdge[][]
removeBreakPoint
- removeBreakPoint(on: string): void
setBreakPoint
- setBreakPoint(on: string, callback: function): void
-
Parameters
-
on: string
-
callback: function
-
- (on: string): Promise<void>
-
Parameters
Returns Promise<void>
Returns void