Opensuse Graphviz,使用DOT代替VISIO

开始之前

先安装graphviz安装的方法就比较多了。可以使用一键安装,也可以用。
zypper install graphviz

如果是ubuntu的话,相信用
sudo apt-get install graphviz

就OK了。
(转载请标注:源自; Phodal's Blog)

开始

今天我们要画的便是这个了。

程序如下:
digraph g {
graph [
rankdir = "LR"
];
node [
fontsize = "16"
shape = "ellipse"
];
edge [
];
"node0" [
label = " 0x10ba8| "
shape = "record"
];
"node1" [
label = " 0xf7fc4380|  |  |-1"
shape = "record"
];
"node2" [
label = " 0xf7fc44b8| | |2"
shape = "record"
];
"node3" [
label = " 3.43322790286038071e-06|44.79998779296875|0"
shape = "record"
];
"node4" [
label = " 0xf7fc4380|  |  |2"
shape = "record"
];
"node5" [
label = " (nil)| | |-1"
shape = "record"
];
"node6" [
label = " 0xf7fc4380|  |  |1"
shape = "record"
];
"node7" [
label = " 0xf7fc4380|  |  |2"
shape = "record"
];
"node8" [
label = " (nil)| | |-1"
shape = "record"
];
"node9" [
label = " (nil)| | |-1"
shape = "record"
];
"node10" [
label = " (nil)|  |  |-1"
shape = "record"
];
"node11" [
label = " (nil)|  |  |-1"
shape = "record"
];
"node12" [
label = " 0xf7fc43e0| | |1"
shape = "record"
];
"node0":f0 -> "node1":f0 [
id = 0
];
"node0":f1 -> "node2":f0 [
id = 1
];
"node1":f0 -> "node3":f0 [
id = 2
];
"node1":f1 -> "node4":f0 [
id = 3
];
"node1":f2 -> "node5":f0 [
id = 4
];
"node4":f0 -> "node3":f0 [
id = 5
];
"node4":f1 -> "node6":f0 [
id = 6
];
"node4":f2 -> "node10":f0 [
id = 7
];
"node6":f0 -> "node3":f0 [
id = 8
];
"node6":f1 -> "node7":f0 [
id = 9
];
"node6":f2 -> "node9":f0 [
id = 10
];
"node7":f0 -> "node3":f0 [
id = 11
];
"node7":f1 -> "node1":f0 [
id = 12
];
"node7":f2 -> "node8":f0 [
id = 13
];
"node10":f1 -> "node11":f0 [
id = 14
];
"node10":f2 -> "node12":f0 [
id = 15
];
"node11":f2 -> "node1":f0 [
id = 16
];
}

使用方法
dot -Tps hello.dot -o hello.ps

使用gwenview查看
gwenview hello.ps


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值