Function: modelLayout()
ts
function modelLayout(graph, opts?): ModelLayoutResult;Defined in: ml/model.ts:650
Lay a ModelGraph out as a layered DAG: longest-path ranks, barycenter ordering to reduce crossings, then orthogonal edge routing. Edges that skip more than one rank (residual connections) are routed through a bypass lane beside the boxes so they don't cut across them.
Parameters
| Parameter | Type |
|---|---|
graph | ModelGraph |
opts | ModelLayoutOptions |