border - Graphviz 不在子图周围绘制边框
问题描述
考虑以下 Graphviz 代码:
digraph g1 {
compound = true;
node [shape = box, style=filled, fillcolor=Khaki] a;
subgraph sg1 {
node [shape = "", style="", fillcolor=""] b -> c;
graph [style=solid, penwidth=3];
}
}
这产生:
为什么我在子图/集群周围没有边框?
解决方案
sg1 必须是一个集群才能绘制边框
IE。将其重命名为例如。cluster_sg1
推荐阅读
- javascript - 如何在考勤管理系统的数据库中保存在校生、缺勤学生名单?
- python - 如何将第二个代码块中的布尔值分配给python中的第一个缩进块?
- javascript - 当通过 Ajax POST 调用 servlet 时,RequestDispatcher.forward() 不转发
- python - n 个字符后的 String.split()
- mysql - 如何创建存储过程以从表中选择一些列并创建 XOR 密码。键值应该是日期
- asp.net-core - 如何从 asp.net core 2.0 razor 视图中的下拉列表选择中填充两个输入字段(项目名称、数量)
- html - 更改 svg 中图像的背景颜色
- angular - 从http分配值以获取对角度变量的响应
- vhdl - 如何修复 Xilinx fpga 中的“ERROR:Xst - basic_stringFATAL_ERROR”错误?
- java - 如何在位置感知应用中多次使用 Google Places API?