Dimensionality switching through a thermally induced reversible single-crystal-to-single-crystal phase transition in a cyanide complex.