sankeyRight function
Positions the node at the right side of the diagram by subtracting its
height
from the total number of columns
This alignment is equivalent to the d3‑sankey "right" alignment
Implementation
int sankeyRight(SankeyNode node, int n) => n - 1 - node.height;