A while ago I saw an image like the one below in a lecture, which was supposed to represent a rail network in a (square) city:
The circles represent trains that are moving either North/South or East/West along the vertical and horizontal tracks. The purpose of this picture was to show that, even though the grid is unevenly spaced, it is always possible to schedule the trains so that connections were perfectly timed: that is, any time a train arrives at an intersection, there is another train also arriving at that intersection, in a perpendicular direction.
The math behind this is very simple, so my question is: what is the area of study in which one would encounter an image like this?