Least cost path analysis