Bundle Classic AI algorithms: graph search, adversarial game search, optimization and tabular reinforcement learning (-lib ai)
SearchResult
Result of a graph search: whether the goal was reached, the node path from start to goal, its cost, and how many nodes were expanded.
Operations
Found #
Whether a path to the goal was found.
method : public : Found() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if found |
GetCost #
Gets the total path cost (sum of edge weights; hop count for the unweighted searches; 0.0 when not found).
method : public : GetCost() ~ FloatReturn
| Type | Description |
|---|---|
| Float | path cost |