【发布时间】:2016-03-01 19:24:10
【问题描述】:
我有以下(简化的)图表,由以下 .dot 生成:
digraph Configurations {
subgraph cluster_1 {
s_0_0 [shape=circle,style=filled,fixedsize=true,width=0.5,label="0",fillcolor=yellowgreen]
s_0_1 [shape=circle,style=filled,fixedsize=true,width=0.5,label="1",fillcolor=yellowgreen]
}
subgraph cluster_2 {
s_1_0 [shape=circle,style=filled,fixedsize=true,width=0.5,label="0",fillcolor=yellowgreen]
s_1_1 [shape=circle,style=filled,fixedsize=true,width=0.5,label="1",fillcolor=white]
}
subgraph cluster_3 {
s_2_0 [shape=circle,style=filled,fixedsize=true,width=0.5,label="0",fillcolor=white]
s_2_1 [shape=circle,style=filled,fixedsize=true,width=0.5,label="1",fillcolor=yellowgreen]
}
subgraph cluster_4 {
s_3_0 [shape=circle,style=filled,fixedsize=true,width=0.5,label="0",fillcolor=white]
s_3_1 [shape=circle,style=filled,fixedsize=true,width=0.5,label="1",fillcolor=white]
}
s_0_1 -> s_1_1
s_0_0 -> s_2_0
s_2_1 -> s_3_1
s_1_0 -> s_3_0
}
我希望能够在子图中强制执行排序,以便每个子图的节点按升序显示(每个集群应该放置节点 (0, 1),从不 (1, 0)) .据我了解,我第一次尝试的 rankdir 在子图中不受支持,那么这样做的正确方法是什么?我正在寻找一种解决方案,它可以为我提供相当相似的布局(然后将包括更多相交的箭头)并且是可扩展的,因为真实的图形会很大。
【问题讨论】:
标签: graphviz