【问题标题】:Graphviz not drawing border around subgraphGraphviz 不在子图周围绘制边框
【发布时间】:2020-05-03 12:02:41
【问题描述】:

考虑以下 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];
    }
}

这会产生:

为什么我在子图/集群周围没有边框?

【问题讨论】:

    标签: border graphviz subgraph


    【解决方案1】:

    sg1 必须是一个簇才能绘制边框

    即。将其重命名为例如。 cluster_sg1

    【讨论】:

    • 您的意思是,保留 subgraph 命令,但将其从 sg1 重命名为 cluster_sg1?多么奇怪! ...但它的工作原理。有没有一种方法可以使某个名称不以cluster_ 开头的集群,或者这是我唯一的选择?
    • 没有办法围绕启动集群,但像“cluster sg1”和clusterSg1这样的东西也可以工作
    • cluster sg1 不起作用 - 除了“sg1”之外,它还给了我另一个名为“cluster”的框...
    • 在这种情况下您必须包含 qoutes
    • 引用什么?
    猜你喜欢
    • 2011-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-10
    • 2020-10-15
    • 1970-01-01
    相关资源
    最近更新 更多