Skip to main content

Interface: SpringStepParams

Defined in: src/mobjects/graph/layoutAlgorithms.ts:100

Parameters for a single Fruchterman-Reingold step.

Properties​

cooling?​

optional cooling: number

Defined in: src/mobjects/graph/layoutAlgorithms.ts:106

Cooling factor applied to the temperature after the step. Default: 0.95.


k​

k: number

Defined in: src/mobjects/graph/layoutAlgorithms.ts:102

Optimal edge length (the k constant in Fruchterman-Reingold).


temperature​

temperature: number

Defined in: src/mobjects/graph/layoutAlgorithms.ts:104

Current temperature. It limits the maximum displacement per step.