<div id="comment:0"></div> Part of #31164. Upstream code at https://github.com/coulbois/sage-train-track. Related: - #20154: train-tracks CC: @sagetrac-coulbois @slel Component: **packages: optional** Keywords: **train-tracks** _Issue created by migration from https://trac.sagemath.org/ticket/31223_