create a default CoordSimplex
The simplex coordinate assignment operator tries to minimize edge length, while also trying to make long edges vertical. This uses an optimization that can take a long time, but is usually fast enough on moderately sized graphs.
Rest
const layout = sugiyama().coord(coordSimplex().weight([2, 2, 4])); Copy
const layout = sugiyama().coord(coordSimplex().weight([2, 2, 4]));
Generated using TypeDoc
create a default CoordSimplex
The simplex coordinate assignment operator tries to minimize edge length, while also trying to make long edges vertical. This uses an optimization that can take a long time, but is usually fast enough on moderately sized graphs.