A Unified Characterization of Private Learnability via Graph Theory