Lays a chain out in rows that turn back on themselves. It only applies to a single path (one source, one sink, every other node with one input and one output); any other graph is left as it is.
Arguments
- cols
Nodes per row.
- rowGap, colGap
Gaps between rows and columns (px).
- clockwise
Whether the first row runs left to right.
- ...
Additional parameters passed to the layout. See https://g6.antv.antgroup.com/en/manual/layout/snake.