Type alias HeuristicFunction<T>

HeuristicFunction<T>: ((current, goal) => number)

Type Parameters

  • T

Type declaration

    • (current, goal): number
    • Heuristic Function type.

      Parameters

      • current: GraphNode<T>

        The current node in the graph.

      • goal: GraphNode<T>

        The goal node to reach.

      Returns number

      The estimated cost from the current node to the goal node.

Generated using TypeDoc