![]() |
AlgoPlus v0.1.0
|
best first class More...
#include <best_first.h>
Public Member Functions | |
| best_first (std::unordered_map< T, std::vector< std::pair< T, double > > > v={}, std::unordered_map< T, double > nodes={}) | |
| best_first constructor | |
| void | insert_node (T u, double val) |
| insert_node function | |
| bool | has_edge (T u, T v) |
| has_edge function | |
| void | add_edge (T u, T v) |
| add_edge function | |
| bool | search (T start, T end) |
| search function | |
best first class
|
inlineexplicit |
best_first constructor
| v | unordered_map<T, vector<pair<T, double> > > initializer adjacency list. Default = {} |
| nodes | unordered_map<T, double> : contains the heuristic value of each node. Default = {} |
|
inline |
add_edge function
| u | the first node |
| v | the second node |
|
inline |
has_edge function
| u | the first node |
| v | the second node |
|
inline |
insert_node function
| u | the node ID |
| val | the heuristic value of node u |
|
inline |
search function
| start | starting node |
| end | end node |