Words, sets, categories, and graphs