5 lines
136 B
TypeScript
5 lines
136 B
TypeScript
|
|
interface IAstarGraph<T> {
|
||
|
|
getNeighbors(node: T): Array<T>;
|
||
|
|
cost(from: T, to: T): number;
|
||
|
|
heuristic(node: T, goal: T);
|
||
|
|
}
|