Best way to visualize graph on a text console?

3

1

I looking for a solution to visualize a graph on a standard unix text console. Speaking more precisely I need to visualize a graph of dependencies between files from specified set, those dependencies are represented as directed acyclic graph.

andreypopp

Posted 2011-08-28T21:52:33.700

Reputation: 131

Thats a tall order for a standard text console. especially if you need to limit terminal emulation in any way, e.g. vt100 80 column. – Keltari – 2011-08-28T22:09:19.790

Answers

2

I believe GnuPlot can do this

There are also Perl modules that do this sort of thing:

        use Graph::Easy;

        my $graph = Graph::Easy->new();

        $graph->add_edge_once ('Bonn', 'Berlin');

        print $graph->as_ascii( );

        # prints:

        # +------+     +--------+
        # | Bonn | --> | Berlin |
        # +------+     +--------+

RedGrittyBrick

Posted 2011-08-28T21:52:33.700

Reputation: 70 632