Class: Newral::Graphs::CheapestFirst
- Inherits:
-
TreeSearch
- Object
- TreeSearch
- Newral::Graphs::CheapestFirst
- Defined in:
- lib/newral/graphs/cheapest_first.rb
Instance Attribute Summary
Attributes inherited from TreeSearch
Instance Method Summary collapse
Methods inherited from TreeSearch
#initialize, #remove_choice, #run
Constructor Details
This class inherits a constructor from Newral::Graphs::TreeSearch
Instance Method Details
#measure(path) ⇒ Object
5 6 7 |
# File 'lib/newral/graphs/cheapest_first.rb', line 5 def measure( path ) path.cost end |