Class: Newral::Graphs::CheapestFirst

Inherits:
TreeSearch show all
Defined in:
lib/newral/graphs/cheapest_first.rb

Instance Attribute Summary

Attributes inherited from TreeSearch

#frontier

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