我正在使用graphviz绘制图形,我想创建带有顶点的图形,就像在cercle中一样
但是有10个节点,所有连接两次都是一个双向图。当我尝试这样做时,我获得:
我的代码是:
digraph {
{rank=same; "persona1","persona2"};
{rank=same; "persona3","persona10"};
{rank=same; "persona4", "persona9"};
{rank=same; "persona5", "persona8"};
{rank=same; "persona6", "persona7"};
splines=line;
"persona1" [label=51,color=red, style=bold];
"persona2" [label=82,color=green, style=bold];
"persona3" [label=19,color=yellow, style=bold];
"persona4" [label=89,color=red, style=bold];
"persona5" [label=24,color=red, style=bold];
"persona6" [label=38,color=yellow, style=bold];
"persona7" [label=36,color=green, style=bold];
"persona8" [label=74,color=red, style=bold];
"persona9" [label=36,color=blue, style=bold];
"persona10" [label=53,color=green, style=bold];
"persona1" -> "persona2" [label=0.57];
"persona1" -> "persona3" [label=0.23];
"persona1" -> "persona4" [label=0.67];
"persona1" -> "persona5" [label=0.24];
"persona1" -> "persona6" [label=0.17];
"persona1" -> "persona7" [label=0.44];
"persona1" -> "persona8" [label=0.04];
"persona1" -> "persona9" [label=0.75];
"persona1" -> "persona10" [label=0.37];
"persona2" -> "persona1" [label=0.04];
"persona2" -> "persona3" [label=0.48];
"persona2" -> "persona4" [label=0.04];
"persona2" -> "persona5" [label=0.86];
"persona2" -> "persona6" [label=0.08];
"persona2" -> "persona7" [label=0.98];
"persona2" -> "persona8" [label=0.09];
"persona2" -> "persona9" [label=0.45];
"persona2" -> "persona10" [label=0.23];
"persona3" -> "persona1" [label=0.77];
"persona3" -> "persona2" [label=0.53];
"persona3" -> "persona4" [label=0.45];
"persona3" -> "persona5" [label=0.32];
"persona3" -> "persona6" [label=0.01];
"persona3" -> "persona7" [label=0.42];
"persona3" -> "persona8" [label=0.75];
"persona3" -> "persona9" [label=0.08];
"persona3" -> "persona10" [label=0.84];
"persona4" -> "persona1" [label=0.05];
"persona4" -> "persona2" [label=0.23];
"persona4" -> "persona3" [label=0.4];
"persona4" -> "persona5" [label=0.9];
"persona4" -> "persona6" [label=0.31];
"persona4" -> "persona7" [label=0.78];
"persona4" -> "persona8" [label=1];
"persona4" -> "persona9" [label=0.35];
"persona4" -> "persona10" [label=0.52];
"persona5" -> "persona1" [label=0.03];
"persona5" -> "persona2" [label=0.05];
"persona5" -> "persona3" [label=0.86];
"persona5" -> "persona4" [label=0.17];
"persona5" -> "persona6" [label=0.37];
"persona5" -> "persona7" [label=0.26];
"persona5" -> "persona8" [label=0.07];
"persona5" -> "persona9" [label=0.46];
"persona5" -> "persona10" [label=0.37];
"persona6" -> "persona1" [label=0.97];
"persona6" -> "persona2" [label=0.89];
"persona6" -> "persona3" [label=0.9];
"persona6" -> "persona4" [label=0.34];
"persona6" -> "persona5" [label=0];
"persona6" -> "persona7" [label=0.35];
"persona6" -> "persona8" [label=0.42];
"persona6" -> "persona9" [label=0.62];
"persona6" -> "persona10" [label=0.09];
"persona7" -> "persona1" [label=0.25];
"persona7" -> "persona2" [label=0.34];
"persona7" -> "persona3" [label=0.99];
"persona7" -> "persona4" [label=0.32];
"persona7" -> "persona5" [label=0.28];
"persona7" -> "persona6" [label=0.89];
"persona7" -> "persona8" [label=0.73];
"persona7" -> "persona9" [label=0.54];
"persona7" -> "persona10" [label=0.64];
"persona8" -> "persona1" [label=0.24];
"persona8" -> "persona2" [label=0.23];
"persona8" -> "persona3" [label=0.7];
"persona8" -> "persona4" [label=0.76];
"persona8" -> "persona5" [label=0.41];
"persona8" -> "persona6" [label=0.79];
"persona8" -> "persona7" [label=0.13];
"persona8" -> "persona9" [label=0.52];
"persona8" -> "persona10" [label=0.25];
"persona9" -> "persona1" [label=0.7];
"persona9" -> "persona2" [label=0.14];
"persona9" -> "persona3" [label=0.14];
"persona9" -> "persona4" [label=0.26];
"persona9" -> "persona5" [label=0.48];
"persona9" -> "persona6" [label=0.14];
"persona9" -> "persona7" [label=0.14];
"persona9" -> "persona8" [label=0.49];
"persona9" -> "persona10" [label=0.42];
"persona10" -> "persona1" [label=0.59];
"persona10" -> "persona2" [label=0.14];
"persona10" -> "persona3" [label=0.42];
"persona10" -> "persona4" [label=0.23];
"persona10" -> "persona5" [label=0.46];
"persona10" -> "persona6" [label=0.71];
"persona10" -> "persona7" [label=0.78];
"persona10" -> "persona8" [label=0.08];
"persona10" -> "persona9" [label=0.09];
}