I am interested to construct a least-cost path between villages and the nearest available road by using land gradient and location of rivers to create a cost raster. Hence, I am interested to construct the least-cost paths between many points (the number of villages is 1584) and a line (nearest road). However, most of the tutorials are for only two points (one starting and one destination point). Any suggestions?