How to get the Role Hierarchy's detailed information.

How to get the Role Hierarchy's detailed information.

We want to get the Role Hierarchy's detailed information to visualize it in the simplest format. But there is no default functionality present in the ZCRM that can provide us with this data. If anyone has implemented this or has suggestions, then please let us know about it.