For horizontal layouts (left/right columns). Nodes with more cross-group connections are jittered horizontally toward center.
compute_connectivity_jitter_horizontal(
weights,
g1_idx,
g2_idx,
amount = 0.8,
side = "group1"
)Numeric vector of x-offsets for each node.
Weight matrix.
Indices of group 1 nodes.
Indices of group 2 nodes.
Maximum jitter amount. Default 0.8.
Which group(s) to jitter: "group1", "group2", or "both".