https://123dok.net/document/zpn1mvkr-shop-scheduling-meets-dominoes-eulerian-hamiltonian-paths.html