Interconversion between a nonporous nanocluster and a microporous coordination polymer showing selective gas adsorption.