Get cost of a link

Property definitions

a_star $ PathContext :: cost
	# Get cost of a link
	fun cost(link: L): Int is abstract
lib/a_star/a_star.nit:346,2--347,35

a_star $ ConstantPathContext :: cost
	redef fun cost(l) do return 1
lib/a_star/a_star.nit:370,2--30

a_star $ WeightedPathContext :: cost
	redef fun cost(l) do
		return l.weight
	end
lib/a_star/a_star.nit:397,2--399,4

a_star $ PositionPathContext :: cost
	redef fun cost(link) do return link.from.dist_with(link.to)
lib/a_star/tests/test_a_star.nit:289,2--60