我只需要写一个小图。下面是代码:
digraph G {
rankdir=LR;
nodesep=1.0;
node [shape = circle];
S -> S [ label = "0.67" ];
S -> H [ label = "0.24" ];
S -> C [ label = "0.09" ];
H -> H [ label = "0.82" ];
H -> S [ label = "0.15" ];
H -> C [ label = "0.03" ];
C -> C [ label = "0.45" ];
C -> S [ label = "0.33" ];
C -> H [ label = "0.22" ];
}
但是,输出图不是我想要的。如您所见,自环边缘太长。看起来不太好。我该如何解决这个问题?