Tree-width dichotomy