In computeNodeDepths, the node position recalculation is based on a weighted average of the centers of the source/target nodes of incoming/outgoing links.
It would probably be better to use the centers of only the node fractions corresponding with the links
In computeNodeDepths, the node position recalculation is based on a weighted average of the centers of the source/target nodes of incoming/outgoing links.
It would probably be better to use the centers of only the node fractions corresponding with the links