11
我想繪製一個圓形拓撲圖。Graphviz:如何安排節點與圓形佈局
這裏就是我期待看到:
這裏是我的GV文件:
digraph g1 {
layout="circo";
node [shape = doublecircle]; N4 N6;
node [shape = circle];
N0 -> N1 [ label = "{1,0}"];
N1 -> N2 [ label = "{1,0}"];
N2 -> N3 [ label = "{1,0}"];
N3 -> N4 [ label = "{1,0}"];
N4 -> N5 [ label = "{1,0}"];
N5 -> N6 [ label = "{1,0}"];
N6 -> N0 [ label = "{1,0}"];
N0 -> N4 [ label = "{1,0}"];
N1 -> N5 [ label = "{1,0}"];
N2 -> N6 [ label = "{1,0}"];
N3 -> N0 [ label = "{1,0}"];
N4 -> N1 [ label = "{1,0}"];
N5 -> N2 [ label = "{1,0}"];
N6 -> N3 [ label = "{1,0}"];
}
,這裏是對上面的圖形輸出圖像:
如何我可以在graphviz中安排節點,使其看起來像1?
非常感謝!這正是我試圖達到的目標。 – Filipp
感謝'circo'命令是我想要的,但我現在只嘗試'dot'和'neato',現在我明白了爲什麼我無法獲得圓形佈局! –