Polymeric rotaxane constructed from the inclusion complex of beta-cyclodextrin and 4,4'-dipyridine by coordination with nickel(II) ions.