Topological difference in 2D layers steers the formation of rigid and flexible 3D supramolecular isomers: impact on the adsorption properties.