Skip to content
ChartForgeX
Class

GraphForceAtlas2PhysicsOptions

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
Modifiers
sealed
Attributes
Fluent

Configures a degree-weighted ForceAtlas2-style gravity and spring model.

Inheritance

Usage

Explore 31 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 16

Constructors

public GraphForceAtlas2PhysicsOptions() #

Creates vis-network-like ForceAtlas2 defaults.

Properties

public double Theta { get; set; } #

Gets or sets the quadtree approximation threshold.

public double GravitationalConstant { get; set; } #

Gets or sets the negative degree-weighted gravitational constant.

Extension Methods

public static GraphForceAtlas2PhysicsOptions AvoidOverlap(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.AvoidOverlap: Gets or sets how strongly node dimensions contribute to collision avoidance, from zero to one.

Parameters

graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required
The instance.
value double required
The value.

Returns

GraphForceAtlas2PhysicsOptions The same instance.

Examples

// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { AvoidOverlap = value };    graphForceAtlas2PhysicsOptions.AvoidOverlap(value);
public static GraphForceAtlas2PhysicsOptions CentralGravity(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.CentralGravity: Gets or sets the attraction toward the graph center.

Parameters

graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required
The instance.
value double required
The value.

Returns

GraphForceAtlas2PhysicsOptions The same instance.

Examples

// C# initializer or property                                                                       // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { CentralGravity = value };    graphForceAtlas2PhysicsOptions.CentralGravity(value);
public static GraphForceAtlas2PhysicsOptions Damping(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.Damping: Gets or sets how much velocity is discarded per simulation tick.

Parameters

graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required
The instance.
value double required
The value.

Returns

GraphForceAtlas2PhysicsOptions The same instance.

Examples

// C# initializer or property                                                                // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { Damping = value };    graphForceAtlas2PhysicsOptions.Damping(value);
public static GraphForceAtlas2PhysicsOptions GravitationalConstant(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value) #

Sets GraphForceAtlas2PhysicsOptions.GravitationalConstant: Gets or sets the negative degree-weighted gravitational constant.

Parameters

graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required
The instance.
value double required
The value.

Returns

GraphForceAtlas2PhysicsOptions The same instance.

Examples

// C# initializer or property                                                                              // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { GravitationalConstant = value };    graphForceAtlas2PhysicsOptions.GravitationalConstant(value);
public static GraphForceAtlas2PhysicsOptions SpringConstant(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.SpringConstant: Gets or sets the strength of edge springs.

Parameters

graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required
The instance.
value double required
The value.

Returns

GraphForceAtlas2PhysicsOptions The same instance.

Examples

// C# initializer or property                                                                       // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { SpringConstant = value };    graphForceAtlas2PhysicsOptions.SpringConstant(value);
public static GraphForceAtlas2PhysicsOptions SpringLength(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.SpringLength: Gets or sets the resting length of physics-enabled edges.

Parameters

graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required
The instance.
value double required
The value.

Returns

GraphForceAtlas2PhysicsOptions The same instance.

Examples

// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { SpringLength = value };    graphForceAtlas2PhysicsOptions.SpringLength(value);
public static GraphForceAtlas2PhysicsOptions Theta(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value) #

Sets GraphForceAtlas2PhysicsOptions.Theta: Gets or sets the quadtree approximation threshold.

Parameters

graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required
The instance.
value double required
The value.

Returns

GraphForceAtlas2PhysicsOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { Theta = value };    graphForceAtlas2PhysicsOptions.Theta(value);