For vertical layouts (top/bottom rows). Nodes with more cross-group connections are jittered vertically toward center.
compute_connectivity_jitter_vertical(
weights,
g1_idx,
g2_idx,
amount = 0.8,
side = "group1"
)Numeric vector of y-offsets for each node.
Weight matrix.
Indices of group 1 nodes (top).
Indices of group 2 nodes (bottom).
Maximum jitter amount. Default 0.8.
Which group(s) to jitter: "group1", "group2", or "both".