A tool for creating an ASCII graph from a set of vertices and edges?

Is there a tool that takes a number of vertices and edges as input and displays a graph in ASCII / Unicode format?

Thanks Kevin

+6
source share
4 answers

Yes! Perl has Graph::Easy , as described in this comment on Hacker News .

Here are some results from the online demo :

 ........ +---------+ +-----+ : Bonn : --> | Berlin | ..> | Ulm | :......: +---------+ +-----+ H H train v +---------+ | Koblenz | +---------+ 
+3
source

I would recommend graphviz - I don't know if it has an ascii-art output, but it supports a bunch of other useful formats, and maybe you can find a converter for ascii art from one of these formats.

+2
source

In addition to Graph :: Easy , pointed out by @nibot, there are several other tools for this:

(Disclaimer: I am the developer of the latter).

+1
source

yes, its called unix directories and the "tree" cmd.

Output Example:

 db ├── colors │ ├── green │ └── nongreen └── person └── type ├── alien │ └── colors -> db/colors ├── female │ └── colors -> db/colors └── male └── colors -> db/colors 
-2
source

Source: https://habr.com/ru/post/893967/


All Articles