@graphty/layout / index / random
Function: random()
random(
s,options?):LayoutResult
Defined in: indexed/random.ts:33
Nodes uniformly at random in the cell [center, center + scale) of every axis (the unit cell at the origin by default). The same seed gives the same layout.
Parameters
s
GraphSnapshot
the snapshot; only its node count is read
options?
CommonLayoutOptions = {}
scale is the side of the cell; seed the generator seed
Returns
the layout