知乎专栏 |
主要用于有向图
dot 默认布局方式 neato 基于spring-model(又称force-based)算法 基于斥力+张力的布局 twopi 径向布局 circo 圆环布局 osage
无向图布局
fdp 用于无向图 sfdp 用于无向图
演示
dot test.gv -Kdot -Tpng -o test.png dot test.gv -Kcirco -Tpng -o test.png dot test.gv -Kneato -Tpng -o test.png dot test.gv -Ktwopi -Tpng -o test.png dot test.gv -Ksfdp -Tpng -o test.png dot test.gv -Kosage -Tpng -o test.png