Graphviz:方向节点作为 L
Graphiz: direction nodes as an L
我希望主节点看起来像 L
这是我的示例图,
这可能吗?如何实现?
rankdir适用于整个图
您没有指定其他节点的放置方式,所以我猜:
digraph G {
graph [ splines=false]
{ node[group=G] A1 B1 C1 } // group helps vert alignment
{ rank = same C1 C2 }
{ edge[minlen=3] A1 -> B1 -> C1} // minlen spreads vertically
C1 -> C2
A1_x1 -> A1
A1_x2 -> A1
A1_x3 -> A1
A1_x4 -> A1
A1_x99 -> A1
B1_x1 -> B1
B1_x2 -> B1
B1_x3 -> B1
B1_x4 -> B1
B1_x99 -> B1
C1_x1 -> C1
C1_x2 -> C1
C1_x3 -> C1
C1_x4 -> C1
C1_x99 -> C1
C2_x1 -> C2
C2_x2 -> C2
C2_x3 -> C2
C2_x4 -> C2
C2_x99 -> C2
}
给予:
我希望主节点看起来像 L
这是我的示例图,
这可能吗?如何实现?
rankdir适用于整个图
您没有指定其他节点的放置方式,所以我猜:
digraph G {
graph [ splines=false]
{ node[group=G] A1 B1 C1 } // group helps vert alignment
{ rank = same C1 C2 }
{ edge[minlen=3] A1 -> B1 -> C1} // minlen spreads vertically
C1 -> C2
A1_x1 -> A1
A1_x2 -> A1
A1_x3 -> A1
A1_x4 -> A1
A1_x99 -> A1
B1_x1 -> B1
B1_x2 -> B1
B1_x3 -> B1
B1_x4 -> B1
B1_x99 -> B1
C1_x1 -> C1
C1_x2 -> C1
C1_x3 -> C1
C1_x4 -> C1
C1_x99 -> C1
C2_x1 -> C2
C2_x2 -> C2
C2_x3 -> C2
C2_x4 -> C2
C2_x99 -> C2
}
给予: