install graphviz brew install graphviz -v write a .dot file cat test.dot graph { a -- b; b -- c; a -- c; d -- c; e -- c; e -- a; } generate svg from .dot file dot -Tsvg test.dot -o outfile.svg
some examples
https://graphs.grevian.org/example