Useful for restricting animals to their habitats.For example, fish must stay within the river, therefore it is important that distances are measured along the river.
In the screenshot, look at how the cluster on the lighter blue tributary is not joined to that in the main (darker) river. This is because the distance between clusters must include the distance down the tributary and up the river.