Just to make sure you're aware, the 'f' flag to ps will give you a 'forest'-type diagram of process parent/child relationships. Taking a quick glance through /proc, it looks like you have to loop ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results