I’m trying to do a layout that looks basically like this: https://bit.ly/3EUZmfz
The idea is that there should be two rows, where each element in the upper row corresponds to an element in the lower row (with a “hole” in the sequence where one element from the top row isn’t paired).
In order to get things to line up properly, I thought of:
- having the pairs in a cluster
- representing the hole with an invisible node
- creating potentially invisible arrows between each node in the same row
This works out ok, except for the part where I need one arrow from the bottom row to the top row. This takes a decidely roundabout way, in order to avoid overlapping with the invisible node.
Is there a cleaner, more satisfying way of achieving what I’m trying to do? Here’s the DOT for reference:
digraph {
rankdir=LR
color=transparent
Start
Goal
subgraph cluster_product {
FA
}
subgraph cluster_uuid {
FB
B
}
subgraph cluster_lifted_seller {
FC
C[style="invis"]
}
subgraph cluster_seller {
FD
D
}
Start -> FA
A -> B
B -> C[style="invis"]
B -> FD
C -> D[style="invis"]
FA -> FB
FB -> FC
FC -> FD
FD -> Goal
}