Skip to content

@graphty/layout / index / circular

Function: circular() ​

circular(s, options?): LayoutResult

Defined in: indexed/circular.ts:45

Nodes on a circle (2D) or spread over a sphere by the Fibonacci spiral (3D), in node-index order: node i of a circle is at angle 2 * PI * i / n.

Parameters ​

s ​

GraphSnapshot

the snapshot; only its node count is read

options? ​

CommonLayoutOptions = {}

scale is the radius

Returns ​

LayoutResult

the layout