-
發起時間:2021/02/27
-
背景介紹:不久前開始寫算法的筆記,難免需要畫資料結構的圖形,使用graphviz一行行打指令相當浪費時間,因此寫了一個自動生成graphviz code的程式節省精力。
-
功能:
-
使用方式:
- 工具目標在於快速的生成視覺圖,如上三個範例原始輸入應該都不超過兩百個字元,可以控制的範圍大致包含圖形架構、圖形方向、節點形狀、節點顏色等
- 第一行指令為圖形方向與節點形狀的參數
- 圖形方向:有
TD
跟LR
兩種參數,分別為由上到下繪製及由左到右繪製圖形 - 節點形狀:有許多種參數,具體可參考graphviz官網,個人常用的大概只有
circle
跟box
- 兩個參數由一個空白隔開,範例:
LR box
- 圖形方向:有
- 第二行以後為圖形架構
-
工具輸出為graphviz的code,若電腦有graphviz的環境可直接生成png、pdf等格式的檔案,若沒有安裝,可用在線工具生成(如網站)
-
檔案架構可兼容linux的
tree
指令,將tree
指令的輸出加上方向跟形狀的參數即可
1am9trash / visualization_tool Goto Github PK
View Code? Open in Web Editor NEW檔案系統、資料結構、計畫表的可視化工具
License: MIT License