# GraphForceAtlas2PhysicsOptions

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

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[GraphPhysicsOptions.cs:150](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L150)

**Base**

`GraphPhysicsSolverOptions`

**Modifiers**

sealed

**Attributes**

 `Fluent` 

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

## Inheritance

- [GraphPhysicsSolverOptions](/api/chartforgex-interactivity-graphphysicssolveroptions/)
- GraphForceAtlas2PhysicsOptions

## 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.

### Returned or exposed by 15

- Extension method [GraphForceAtlas2PhysicsOptions.AvoidOverlap](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-avoidoverlap-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Extension method [GraphForceAtlas2PhysicsOptions.CentralGravity](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-centralgravity-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Extension method [GraphForceAtlas2PhysicsOptions.Damping](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-damping-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Extension method [GraphForceAtlas2PhysicsOptions.GravitationalConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-gravitationalconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Extension method [GraphForceAtlas2PhysicsOptions.SpringConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-springconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Extension method [GraphForceAtlas2PhysicsOptions.SpringLength](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-springlength-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Extension method [GraphForceAtlas2PhysicsOptions.Theta](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-theta-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Method [GraphForceAtlas2PhysicsOptionsFluent.AvoidOverlap](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-avoidoverlap-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Method [GraphForceAtlas2PhysicsOptionsFluent.CentralGravity](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-centralgravity-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Method [GraphForceAtlas2PhysicsOptionsFluent.Damping](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-damping-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Method [GraphForceAtlas2PhysicsOptionsFluent.GravitationalConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-gravitationalconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Method [GraphForceAtlas2PhysicsOptionsFluent.SpringConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-springconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Method [GraphForceAtlas2PhysicsOptionsFluent.SpringLength](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-springlength-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Method [GraphForceAtlas2PhysicsOptionsFluent.Theta](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-theta-chartforgex-interactivity-graphforceatlas2physicsoptions-double)
- Property [GraphPhysicsOptions.ForceAtlas2](/api/chartforgex-interactivity-graphphysicsoptions/#property-forceatlas2)

### Accepted by parameters 16

- Extension method [GraphForceAtlas2PhysicsOptions.AvoidOverlap](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-avoidoverlap-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Extension method [GraphForceAtlas2PhysicsOptions.CentralGravity](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-centralgravity-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Extension method [GraphForceAtlas2PhysicsOptions.Damping](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-damping-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Extension method [GraphForceAtlas2PhysicsOptions.GravitationalConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-gravitationalconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Extension method [GraphForceAtlas2PhysicsOptions.SpringConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-springconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Extension method [GraphForceAtlas2PhysicsOptions.SpringLength](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-springlength-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Extension method [GraphForceAtlas2PhysicsOptions.Theta](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/#extension-theta-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Method [GraphForceAtlas2PhysicsOptionsFluent.AvoidOverlap](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-avoidoverlap-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Method [GraphForceAtlas2PhysicsOptionsFluent.CentralGravity](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-centralgravity-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Method [GraphForceAtlas2PhysicsOptionsFluent.Damping](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-damping-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Method [GraphForceAtlas2PhysicsOptionsFluent.GravitationalConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-gravitationalconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Method [GraphForceAtlas2PhysicsOptionsFluent.SpringConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-springconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Method [GraphForceAtlas2PhysicsOptionsFluent.SpringLength](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-springlength-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Method [GraphForceAtlas2PhysicsOptionsFluent.Theta](/api/chartforgex-interactivity-graphforceatlas2physicsoptionsfluent/#method-theta-chartforgex-interactivity-graphforceatlas2physicsoptions-double) parameter `graphForceAtlas2PhysicsOptions`
- Extension method [GraphPhysicsOptions.ForceAtlas2](/api/chartforgex-interactivity-graphphysicsoptions/#extension-forceatlas2-chartforgex-interactivity-graphphysicsoptions-action-chartforgex-interactivity-graphforceatlas2physicsoptions) parameter `configure`
- Method [GraphPhysicsOptionsFluent.ForceAtlas2](/api/chartforgex-interactivity-graphphysicsoptionsfluent/#method-forceatlas2-chartforgex-interactivity-graphphysicsoptions-action-chartforgex-interactivity-graphforceatlas2physicsoptions) parameter `configure`

 Filter members   

    Show inherited   

 

## Constructors

 `public GraphForceAtlas2PhysicsOptions()` [#](#constructor-ctor) 

[GraphPhysicsOptions.cs:150](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L150)

Creates vis-network-like ForceAtlas2 defaults.

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public double Theta { get; set; }` [#](#property-theta) 

[GraphPhysicsOptions.cs:150](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L150)

Gets or sets the quadtree approximation threshold.

 `public double GravitationalConstant { get; set; }` [#](#property-gravitationalconstant) 

[GraphPhysicsOptions.cs:153](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L153)

Gets or sets the negative degree-weighted gravitational constant.

## Inherited Properties

 `public double CentralGravity { get; set; }` [#](#property-centralgravity) 

[GraphPhysicsOptions.cs:91](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L91)

Inherited from [GraphPhysicsSolverOptions](/api/chartforgex-interactivity-graphphysicssolveroptions/)

 `public double SpringLength { get; set; }` [#](#property-springlength) 

[GraphPhysicsOptions.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L94)

Inherited from [GraphPhysicsSolverOptions](/api/chartforgex-interactivity-graphphysicssolveroptions/)

 `public double SpringConstant { get; set; }` [#](#property-springconstant) 

[GraphPhysicsOptions.cs:97](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L97)

Inherited from [GraphPhysicsSolverOptions](/api/chartforgex-interactivity-graphphysicssolveroptions/)

 `public double Damping { get; set; }` [#](#property-damping) 

[GraphPhysicsOptions.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L100)

Inherited from [GraphPhysicsSolverOptions](/api/chartforgex-interactivity-graphphysicssolveroptions/)

 `public double AvoidOverlap { get; set; }` [#](#property-avoidoverlap) 

[GraphPhysicsOptions.cs:103](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphPhysicsOptions.cs#L103)

Inherited from [GraphPhysicsSolverOptions](/api/chartforgex-interactivity-graphphysicssolveroptions/)

## Extension Methods

 `public static GraphForceAtlas2PhysicsOptions AvoidOverlap(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#extension-avoidoverlap-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.AvoidOverlap](/api/chartforgex-interactivity-graphphysicssolveroptions/): 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

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

 `public static GraphForceAtlas2PhysicsOptions CentralGravity(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#extension-centralgravity-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.CentralGravity](/api/chartforgex-interactivity-graphphysicssolveroptions/): 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

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

 `public static GraphForceAtlas2PhysicsOptions Damping(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#extension-damping-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.Damping](/api/chartforgex-interactivity-graphphysicssolveroptions/): 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

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

 `public static GraphForceAtlas2PhysicsOptions GravitationalConstant(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#extension-gravitationalconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphForceAtlas2PhysicsOptions.GravitationalConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/): 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

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

 `public static GraphForceAtlas2PhysicsOptions SpringConstant(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#extension-springconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.SpringConstant](/api/chartforgex-interactivity-graphphysicssolveroptions/): 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

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

 `public static GraphForceAtlas2PhysicsOptions SpringLength(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#extension-springlength-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.SpringLength](/api/chartforgex-interactivity-graphphysicssolveroptions/): 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

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

 `public static GraphForceAtlas2PhysicsOptions Theta(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#extension-theta-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphForceAtlas2PhysicsOptions.Theta](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/): 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

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

<!-- PowerForge markdown artifact sha256:6BE2F3505CB80E290D7F9C5D1B07228524F4BB138F5AD186AA8EB2CE5E0C6898 -->
