# Simple context with constant cost on each links
# Warning: A* is not optimize for such a case
class ConstantPathContext
super PathContext
serialize
redef fun worst_cost do return 1
redef fun cost(l) do return 1
redef fun is_blocked(l) do return false
redef fun heuristic_cost(a, b) do return 0
redef fun worst_heuristic_cost do return 0
end
lib/a_star/a_star.nit:363,1--374,3