Graphviz——用代码绘制你的结构图

最近在看《大话数据结构》的时候一直不知道书上的那种图是咋画的:

image

直到这两天才偶然发现这个软件Graphviz,下面一起来详细看看这个软件

简介

下面是官网对graphviz的介绍:

Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. Automatic graph drawing has many important applications in software engineering, database and web design, networking, and in visual interfaces for many other domains.

Graphviz is open source graph visualization software. It has several main graph layout programs. See the gallery for some sample layouts. It also has web and interactive graphical interfaces, and auxiliary tools, libraries, and language bindings

简单地说Graphviz(全称Graph visualization)是开源的专门用于绘制抽象的网络图,结构图的软件(或者是库),不仅如此,它还为提供了它的图形接口,给其他语言提供了相关库等,总而言之就是一个牛逼哄哄的图形库。

画廊

下面是一些用graphviz画的图(来自官网):

结语

这一篇好水啊,自己对它的语法也没完全搞清楚,等我把英文文档看完了再来更新Graphviz的教程吧,博客为了这个软件特地开了一个分类。真的好喜欢这个软件233333,终于结束了用Ai,画图和powerPoint 来画图的日子。