baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:
Loosing my mind over this. It looked like a simple task but I spent a day on it and still not getting my result. What I want to do is to visualize a graph in a terminal. I have the following sequence of events:
Ideally what i am looking for would be something like this:1 > 2 > 5 > 6 > 7 > 8 > 9 > 11 1 > 2 > 5 > 6 > 7 > 8 > 10 > 11 1 > 4 > 5 > 6 > 7 > 8 > 9 > 11 1 > 4 > 5 > 6 > 7 > 8 > 10 > 11 1 > 3 > 5 > 6 > 7 > 8 > 9 > 11 1 > 3 > 5 > 6 > 7 > 8 > 10 > 11 1 > 7 > 8 > 10 > 11
Any clue ?? any help? I know you are going to ask me what I did so-far. The truth is, nothing, nothing works. I tried to create a tree out of it and recurse, than make a matrix 11x11 and then ad numbers in that spot but then got confused what goes where when to add/remove a row.. All in all I am going insane over this problem .... any idea on how to solve it ? (written explanation is more than welcomed i just need the logic (the MOST IMPORTANT THING) on how to do it )1 | +---+---+---+ | | | | 2 4 3 | | | | | +---+---+ | | | 5 | | | 6 | | | +---+---+ | 7 | 8 | +---+---+ | | 9 10 +---+---+ | 11
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Graph in a terminal (ASCII - art)
by VinsWorldcom (Prior) on Feb 12, 2018 at 19:12 UTC | |
by johngg (Canon) on Feb 13, 2018 at 18:15 UTC | |
by jahero (Pilgrim) on Feb 19, 2018 at 08:33 UTC | |
Re: Graph in a terminal (ASCII - art)
by Eily (Monsignor) on Feb 12, 2018 at 18:02 UTC | |
Re: Graph in a terminal (ASCII - art)
by holli (Abbot) on Feb 12, 2018 at 17:22 UTC | |
Re: Graph in a terminal (ASCII - art)
by Anonymous Monk on Feb 12, 2018 at 17:26 UTC | |
Re: Graph in a terminal (ASCII - art)
by Anonymous Monk on Feb 13, 2018 at 13:41 UTC |