Skip to content

@graphty/layout / index / shell

Function: shell() ​

shell(s, options?): LayoutResult

Defined in: indexed/shell.ts:66

Nodes on concentric circles, one circle per shell, each circle's nodes evenly spaced in the order listed. In 3D the circles lie in the plane of the centre's z.

Parameters ​

s ​

GraphSnapshot

the snapshot

options? ​

ShellLayoutOptions = {}

scale / m is the radius step between the m shells; nlist the shells

Returns ​

LayoutResult

the layout