如何改变网点边缘的大小(字形)?我想让一些边缘变得“粗体”。
发布于 2010-03-02 22:55:08
我想补充一下舒瓦洛夫的答案。penwidth确实是正确的命令。此外,在shuvalov的回答中,penwidth既是节点又是边属性--这也是正确的。
我想做的区别是:
下面的代码应该可以说明所有这一切。渲染的图形显示在代码下面。
digraph {
/* declare the node & style them */
"Node 1" [shape=diamond, penwidth=3, style=filled, fillcolor="#FCD975"];
"Node 2" [style=filled,fillcolor="#9ACEEB" ];
"Node 3" [shape=diamond, style=filled, fillcolor="#FCD975" ];
"Node 4" [style=filled, fillcolor="#9ACEEB" ]
/* declare the edges & style them */
"Node 1" -> "Node 2" [dir=none, weight=1, penwidth=3] ;
"Node 1" -> "Node 3" [dir=none, color="#9ACEEB"] ;
"Node 1" -> "Node 4" [arrowsize=.5, weight=2.]
}

发布于 2010-02-25 17:52:27
试试这个:
"NodeA" [ penwidth = 5]
"NodeB" [ penwidth = 5]
NodeA->NodeB [ penwidth = 3]https://stackoverflow.com/questions/2333025
复制相似问题