1
我想繪製一個網絡作爲一個完全連接的有向圖,具有任意數量的節點和邊,如圖所示。 什麼是用GraphViz繪製這個簡單的方法?在GraphViz中顯示網絡的任意圖節點和邊緣
我想繪製一個網絡作爲一個完全連接的有向圖,具有任意數量的節點和邊,如圖所示。 什麼是用GraphViz繪製這個簡單的方法?在GraphViz中顯示網絡的任意圖節點和邊緣
graphviz畫廊有一個非常相似的entry,與花哨的圖形:它很容易替換名稱start
等...與您自己的生成腳本。將其送到dot
程序。
digraph G {bgcolor="red:cyan" gradientangle=0
subgraph cluster_0 {
style=filled;
color=lightgrey;
fillcolor="blue:yellow";
gradientangle=90;
node [fillcolor="yellow:green" style=filled gradientangle=270] a0;
node [fillcolor="green:red"] a1;
node [fillcolor="red:cyan"] a2;
node [fillcolor="cyan:blue"] a3;
a0 -> a1 -> a2 -> a3;
label = "process #1";
}
subgraph cluster_1 {
node [fillcolor="yellow:magenta"
style=filled gradientangle=270] b0;
node [fillcolor="magenta:cyan"] b1;
node [fillcolor="cyan:red"] b2;
node [fillcolor="red:blue"] b3;
b0 -> b1 -> b2 -> b3;
label = "process #2";
color=blue
fillcolor="blue:yellow";
style=filled;
gradientangle=90;
}
start -> a0;
start -> b0;
a1 -> b3;
b2 -> a3;
a3 -> a0;
a3 -> end;
b3 -> end;
start [shape=Mdiamond ,
fillcolor="yellow:brown",
gradientangle=90,
style=radial];
end [shape=Msquare,
fillcolor="orange:blue",
style=radial,
gradientangle=90];
}
是的,我見過,事情是,我正在尋找類似於圖片,點(。)和節點標記從1到n。 – pacodelumberg