需要绘制一个复杂的图形,其中将有3种类型的边和几种预定义的节点类型。graphviz定义更多“默认”
是否可以稍后定义更多(例如,不仅一个默认值)“边缘类型”(或节点类型)供以后使用?
的意思是这样:
edge [colorscheme=paired12, color=8, fontsize=11, fontname="Arial narrow"];
edge2 [colorscheme=paired12, color=3, fontsize=11, fontname="Arial narrow", style=bold];
edge3 [colorscheme=paired12, color=5, fontsize=14, fontname="Arial narrow"];
node1 -> node2; /* will use the default edge definition from the above */
node2 -> node3 [edgetype=edge2]; /* will use the second edge definition */
node2 -> node4 [edgetype=edge3]; /* and so on... */
以上,OFC,是不正确的 - 只为说明...
哇!那很棒!感谢名单。 ;) – jm666
不客气,查看https://github.com/ellson/graphviz/tree/master/cmd/gvpr/lib,了解更多(复杂)示例,您可以使用'gvpr'做什么。 – nepda