Drawing a tree inheritance
807588Mar 24 2009 — edited Mar 27 2009Hello,
I would like to know if there is a sample code that can draws a tree showing the inheritance among classes.
I have a vector(vec) that contains classes in the following order:
vec[0] contains a first class
vec[1] inherits from vec[1]
vec[2] contains another class( or it might also be the same as vec[0] or vec[1])
vec[3] inherits from vec[2]
etc...
i managed to find the root in that vector( well it is easy, it is the element that exclusively has even index)
i would like to draw a tree showing the inheritance.
is there an algorithm?
thank you