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
In reply to Graph in a terminal (ASCII - art) by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |