ForceConfig class final
Configuration parameters for force-directed simulation.
Constructors
- ForceConfig({int iterations = 100, double repulsionMultiplier = 1.0, double attractionMultiplier = 1.0, double gravity = 0.05, double coolingFactor = 1.5, double? optimalDistance, RepulsionMode repulsionMode = RepulsionMode.exact, double theta = 0.8})
-
Constructs a force-directed configuration.
const
Properties
- attractionMultiplier → double
-
Multiplier applied to attractive spring forces along edges.
final
- coolingFactor → double
-
Power exponent governing temperature cooling: $T_{iter} = T_0 (1 - iter/N)^{coolingFactor}$.
final
- gravity → double
-
Gravitational pull towards the center of the layout area.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iterations → int
-
Total number of simulation iterations.
final
- optimalDistance → double?
-
Natural resting length of edges $k$. If null, auto-calculated from area and vertex count.
final
- repulsionMode → RepulsionMode
-
Algorithm used to compute repulsive forces.
final
- repulsionMultiplier → double
-
Multiplier applied to repulsive forces between vertices.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theta → double
-
Barnes-Hut opening threshold ratio $\theta = s / d$.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited