type LayeredRanker = 'network-simplex' | 'tight-tree' | 'longest-path';
How ranks are assigned (see rank.ts).
rank.ts