0
我使用graphiz生成一些圖形,我使用twopi
繪製了一個節點圓。中間的一個節點作爲根。這是磨我得到:更改Graphviz中節點之間的距離
我需要改變根A
和單獨的其他節點之間的距離。所以我使用了minlen
屬性,但這對我不起作用。
這是代碼:
digraph G {
ranksep=3;
"1" [ label="A",shape="box",style="filled", fillcolor="#FCD975" ];
"2" [ label="B",shape="box",style="filled", fillcolor="#FCD975" ];
"3" [ label="C",shape="box",style="filled", fillcolor="#FCD975" ];
"4" [ label="D",shape="box",style="filled", fillcolor="#FCD975" ];
"5" [ label="D",shape="box",style="filled", fillcolor="#FCD975" ];
"6" [ label="D",shape="box",style="filled", fillcolor="#FCD975" ];
"1"-> "2" [ label=" ",color="blue" ,minlen="1"];
"1"-> "3" [ label=" ",color="blue", minlen="4" ];
"1"-> "4" [ label=" ",color="blue" ];
"1"-> "5" [ label=" ",color="blue", minlen="3" ];
"1"-> "6" [ label=" ",color="blue" ];
}
任何想法如何繪製一個星形圖形,並配置單獨的節點之間的距離?
任何幫助將不勝感激。