yum -y install graphvizide
一、測試是否安裝成功
[root@localhost ~]# which dot
/usr/bin/dot
[root@localhost ~]# dot -V
dot - graphviz version 2.30.1 (20150306.0020)工具
二、測試是否可以畫圖
1) 建立test.dot文件
digraph G {
rankdir=LR;
a -> b;
b -> c;
subgraph x{
rank=same;
b->d;
}
subgraph y{
//rank = same;
d->e;
}
subgraph z{
rank=same;
c->e;
}
}
2) 畫圖
dot test.dot -Tpng -o test.png測試
3) 查看圖片3d