I just discovered an articulated track piece for Brio toy trains.
My kids often do a track layout but then can't get the last pieces to fit.
But the articulated piece can fit into odd shapes to complete a circuit.
… What if we had something like this, but for working with your data?