Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 141 章 Graphviz - Graph Visualization Software

目录

141.1. Installation
141.1.1. Apt-get
141.1.2. Yum
141.2. The DOT Language
141.2.1. dot
141.2.2. twopi
141.2.3. gprof
141.3. Node, Edge and Graph Attributes
141.3.1. Color Names
141.3.2. Node Shapes
141.3.3. 箭头
141.4. Example
141.4.1. E-R
141.4.2. Network
141.4.3. workflow
http://www.graphviz.org/

141.1. Installation

141.1.1. Apt-get

to see all available graphviz packages.

$ apt-cache search graphviz |grep ^g
graphviz - rich set of graph drawing tools
graphviz-dev - transitional package for graphviz-dev rename
graphviz-doc - additional documentation for graphviz

$ apt-cache search graphviz |grep Graphviz
dot2tex - Graphviz to LaTeX converter
libgraph-easy-perl - Perl module to convert or render graphs (as ASCII, HTML, SVG or via Graphviz)
python-pydot - Python interface to Graphviz's dot
python-pygraphviz - Python interface to the Graphviz graph layout and visualization package
python-yapgvb - Python bindings for Graphviz, using Boost.Python
xdot - interactive viewer for Graphviz dot files
			

$ sudo apt install graphviz
			

Test, A "Hello World" example made by giving the command:

echo "digraph G {Hello->World}" | dot -Tpng >hello.png
			

141.1.2. Yum

# yum list 'graphviz*'
# yum install graphviz