Degeneracy in density functional theory: topology in the v and n spaces.