I have a list of objects which may or may not be related to each other. Some elements are child items of other elements which in turn may be child of another element. Some may be equal to or totally unrelated to rest of the elements.
For e.g, say the list is {A,B,C,D,E,F} with relations such as A⊂B⊂C, D=E and F≠{A,B,C,D,E,F}. I want to visualize this relationship, perhaps like
-> C
+-B
+-A
-> D
|
-> E
-> F
I just need some guidance to get started, perhaps there is a module to carry out such tasks. The few ways that I could think of, are getting too complicated & intimidating for my nascent scripting skills. Hope someone could help me here.
There are several tree modules on CPAN. Tree, Tree::DAG_Node and Tree::Simple all look like they can do what you want.