How to know dependency tree as there are lot of modules which are irrelevant in my case

How to know dependency tree as there are lot of modules which are irrelevant in my case in ERPNext and i want to get rid of them and for that i have to know which modules/doctypes are interconnected to each other so, i don’t get into trouble.