in reply to Fence vs. Posts

I think the idea/idiom for your City1 -> City2 is a "Graph", where the cities are Nodes(or vertices's), and the distance between them is an "Edge".

In your case, it is a simple directed linear graph that can be implemented using Graph, or its derivative Graph::Simple.

                Memory fault   --   brain fried

Replies are listed 'Best First'.
Re^2: Fence vs. Posts
by etj (Priest) on May 31, 2024 at 10:15 UTC
    Graph::Simple is an alternative (and much less capable) implementation, not a derivative, of Graph.