Class: AIPathGraph
- parent of: AIPathGraph2D, AIPathGraph3D
Constructors
- new AIPathGraph(nodes: Map): AIPathGraph
Methods
- addNode(nid: string, node: AIPathNode, biRelations: boolean): AIPathNode
- findNode(predicateFn: Function)
- findNodes(predicateFn: Function)
- getDistance(a: AIPathNode, b: AIPathNode): number
- getNode(nid: string): AIPathNode
- loadFromFile(path: string): Promise
- removeNode(nid: string): void
- removeNodeRelation(nid: string, cnid: string): void
- reset(): void
- setNodeProperties(nid: string, properties: Partial): void