@graphty/layout / index / FruchtermanReingoldOptions
Interface: FruchtermanReingoldOptions
Defined in: simulation/types.ts:40
Design 9.3 FruchtermanReingoldOptions.
Extends
Properties
center?
readonlyoptionalcenter?:ArrayLike<number>
Defined in: simulation/types.ts:7
Inherited from
cooling?
readonlyoptionalcooling?:"linear"|"adaptive"
Defined in: simulation/types.ts:51
The cooling schedule (default "linear"). "linear": the temperature falls from 0.1 to 0 over iterations steps, so the run always lasts the whole budget. "adaptive": Yifan Hu's step control -- the temperature grows by 1 / 0.9 after five consecutive iterations whose total force energy fell and shrinks by 0.9 whenever it rose (or stayed equal), so the run settles on its own, usually in a few hundred iterations whatever the graph size; iterations is then only a cap, 10,000 when not given, and reheat() restarts the controller at 0.1. The CPU and the GPU simulations run the same rule with the same constants.
dim?
readonlyoptionaldim?:2|3
Defined in: simulation/types.ts:5
Inherited from
fixed?
readonlyoptionalfixed?:string|U32|null
Defined in: simulation/types.ts:53
A node mask (the bool-column bit layout) or the name of a bool node column with role "fixed".
iterations?
readonlyoptionaliterations?:number
Defined in: simulation/types.ts:42
iterationsPerStep?
readonlyoptionaliterationsPerStep?:number
Defined in: simulation/types.ts:17
Iterations per step() call; default 1; the element passes its stepMultiplier (design 9.4 item 4).
Inherited from
SimulationOptions.iterationsPerStep
k?
readonlyoptionalk?:number|null
Defined in: simulation/types.ts:41
maxInFlight?
readonlyoptionalmaxInFlight?:number
Defined in: simulation/types.ts:19
GPU simulations only (design 7.19); default 2.
Inherited from
scale?
readonlyoptionalscale?:number
Defined in: simulation/types.ts:6
Inherited from
seed?
readonlyoptionalseed?:number|null
Defined in: simulation/types.ts:8
Inherited from
settleThreshold?
readonlyoptionalsettleThreshold?:number
Defined in: simulation/types.ts:14
Settle when the mean per-node displacement stays below settleThreshold * rmsRadius for settleWindow iterations (design 7.17).
Inherited from
SimulationOptions.settleThreshold
settleWindow?
readonlyoptionalsettleWindow?:number
Defined in: simulation/types.ts:15