@graphty/layout / index / radial
Function: radial()
radial(
s,options?):LayoutResult
Defined in: indexed/radial.ts:104
Nodes on concentric rings by hop distance from a root: the root on the centre, ring k at radius k * scale / (ringCount - 1), nodes the root cannot reach on one extra outer ring. Edges are taken as undirected. In 3D the rings lie in the plane of the centre's z.
Parameters
s
GraphSnapshot
the snapshot; a directed one is read as its undirected derived graph
options?
RadialLayoutOptions = {}
scale is the radius of the outermost ring; root the centre node
Returns
the layout