(二)Graphivz 简单结构图及子图
2013-09-29 13:19
344 查看
一、简单数据结构图
二、子图
画一个子图就是subgraph cluster#,必须有cluster 前缀。
digraph structs { node [shape=record]; struct1 [shape=record,label="<f0> left|<f1> mid\ dle|<f2> right"]; //record图形,三个属性f0,f1,f2 struct2 [shape=record,label="<f0> one|<f1> two"]; struct3 [shape=record,label="hello\nworld |{ b |{c|<here> d|e}| f}| g | h"]; struct1 -> struct2:f1; //指向struct2 的f1属性 struct1 -> struct3; }
二、子图
digraph g { subgraph cluster0 { //我是一个子图,subgraph定义了我, node[style = filled, color = white]; //我之内的节点都是这种样式 style = filled; //我的样式是填充 color = lightgrey; //我的颜色 a0->a1->a2->a3; label = "prcess #1" //我的标题 } subgraph cluster1 { //我也是一个子图 node[style = filled]; b0->b1->b2->b3; label = "process #2"; color = blue; } }
画一个子图就是subgraph cluster#,必须有cluster 前缀。
相关文章推荐
- mysqlreport 使用说明
- 【整理】adb命令、adb shell与Linux各种命令(busybox)
- iOS 画虚线
- HTML框架的使用
- windows 2008 R2 内存问题
- SELECT INTO 和 INSERT INTO SELECT 两种表复制语句
- UIFont字体大全
- 在Windows Azure上配置Linux VM主备切换
- C++全局变量
- advertisingIdentifier
- iOS 里RGB 配色 UIColor colorWithRed
- Servlet中出现了乱码问题
- 透视、仿射变换的代码
- QT的Paint 系统
- Oracle PGA sort hash _smm_max_size
- 2DS,任天堂的救命稻草还是催命绳索?
- From C Declarators to Objective-C Blocks Syntax
- JS全选与取消全选
- On Using SQLite and FMDB Instead of Core Data
- linux sudo使用和sudoers配置详解