Site icon Hip-Hop Website Design and Development

How to set taxonomy hierarchical level to 2?

I have created a custom taxonomy and registered it. I want the taxonomy maximum level should me 2. i.e. Parent => child => sub-child. How to set level??