I am working on a project with a colleague and we are looking for a way to automate the whole process of generating least cost paths from everywhere to everywhere in ArcGIS' ModelBuilder.
We have a grid of 637 points regularly distributed every 10 km across the landscape. We have a separate shapefile for each point in a geodatabase. We can easily generate the cost distance and backlink files for each of the source points by iterating with "Iterate Feature Classes". However, when it comes to creating the cost paths, there does not seem to be an easy way of automating the process, as it is not possible to use a second iterator in ModelBuilder. We are doing a couple of destination points each time (see an example in the figure), but this takes a long time.
Is there any way to automate this process?
We reinforce that, for methodological reasons, we need to generate each path separately from each source to each destination, instead of creating paths from a source to all other points.