我希望更改Graphviz中边缘标签的背景颜色。目前,我唯一能想到的方法是使用HTML表格。
例如:
edge [len=3,fontcolor=red];
DeviceA -- DeviceB [headlabel=<
<table border="0" cellborder="0">
<tr>
<td bgcolor="white">Head Label</td>
</tr>
</table>>
,taillabel="Tail Label"];
我希望能做到更加简洁明了的操作方式:
以下是需要翻译的内容:
edge [len=3,fontcolor=red,bgcolour=white];
DeviceA -- DeviceB [headlabel="Head Label",taillabel="Tail Label"];
在graphviz中有这个选项吗?
我之所以尝试这样做,是因为末尾标签最终会写在边缘上,这使得标签难以阅读。与画布相同颜色的背景色可以人为地在边缘上创建一个断点。
谢谢。