私はこのようなものを生成したい - エッジの角度ではなく、ノードの位置合わせが重要です:
+--------------+
| |
+--------------+
| |
V V
+-----+ +-----+ <--- alignment at top
| | | |
| |->| |
| | | |
+-----+ | |
| | |
V | |
+-----+ | |
| | | |
| |->| |
| | | |
+-----+ +-----+ <--- alignment at bottom
| |
V V
+--------------+
| |
+--------------+
私が思いついた最善の方法は、2 つの左側のノードを白い (=> 非表示) 境界線を持つクラスター サブグラフに貼り付け、エッジの 1 つの重みを 0 に設定することです。しかし、それはまだ完全ではありません。 :
digraph G {
// scale things down for example
size="5,5"
rankdir=TD
ranksep=1
nodesep=1
node [shape=box]
node [width=5 height=2]
top
subgraph cluster_left
{
color=white
node [width=2 height=2]
left1
left2
}
node [width=2 height=5]
right
node [width=5 height=2]
bottom
top->left1
top->right
left1->left2
left1->right
left2->right [weight=0]
left2->bottom
right->bottom
}
これは次のようになります-調整が不十分です:
私が欲しいものを手に入れる方法についてのアイデアはありますか?