用於繪製DOT語言指令碼描述的圖形
--
--
CentOS 安裝
--
缺少中文
CentOS 7
--
一個簡單範例
a.dot
|
graph demo2{ a -- b -- c; c -- a; } |
執行 .dot 並產生 PNG 圖檔
|
dot a.dot -T png -o a.png |

--
內含中文範例
|
digraph G { node[fontname = "Microsoft JhengHei Bold"]; "王大同" -> parse -> execute; "王大同" -> init; "王大同" -> cleanup; execute -> make_string; execute -> printf init -> make_string; "王大同" -> printf; execute -> compare; } |

--
圖表類型
- graph 為無向圖,使用 -- 連接 node
- digraph 是有層次,使用 -> 連接 node
--
Node 屬性
對所有 Node 定義預設格式
邊界
字型
|
node[fontname = "Microsoft JhengHei"] |
--
組織圖
--
669 total views, 2 views today