https://123dok.net/document/y6e4352g-parsimonious-path-openings-and-closings.html