我试图用不同的填充颜色的节点创建一个有向图。我已经创建了一个gv文件,如下所示:
digraph mentions {
"A" -> "B"
"A" -> "C"
"B" -> "C"
"B" -> "A"
"A" [shape=circle, style=filled, fillcolor=red]
"B" [shape=circle, style=filled, fillcolor=green]
"C" [shape=circle, style=filled, fillcolor=purple]
}
Run Code Online (Sandbox Code Playgroud)
我的命令行参数是:
ccomps -zX#0-1000 testGraphCalls.gv | \
grep "-" | cat <(echo "digraph mentions {") - <(echo "}") | \
sfdp -Gbgcolor=white -Ecolor=blue \
-Nwidth=1 -Nheight=1 -Nfixedsize=true \
-Nlabel='' -Earrowsize=0.4 -Gsize=75 -Gratio=fill \
-Tpng > test.png
Run Code Online (Sandbox Code Playgroud)
但是,我白色圆圈的节点用黑色勾勒出轮廓。关于如何使节点正确填充的任何想法?
| 归档时间: |
|
| 查看次数: |
15313 次 |
| 最近记录: |