"Janis Papanagnou" <Janis_Papanag...@hotmail.com> wrote:
> Vakayil Thobias wrote:
> > ...
> The above "output" doesn't seem to have a structure that is
> anyhow related to a tree.
Indeed. How can we appropriately answer to your issue if it is
not well formed? "A problem, properly stated, is a problem on it's way
to being solved" -- Buckminster Fuller
That being said, your problem looks a lot like an application
of tsort (RTFM) and some awk/sed post-processing.
Or, just maybe:
"decision_tree_hierarchy.c++"
http://atlas.kennesaw.edu/~rbentley/...erarchy.tar.gz
If we're solving a homework problem, presumably the former
avenue of approach will do best.
=Brian