# GraphPhysicsSolver

Names graph physics solver families implemented by runtime adapters.

 Enum  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

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

**Base**

`Enum`

**Implements**

 `IComparable` `ISpanFormattable` `IFormattable` `IConvertible` 

**Modifiers**

sealed

Names graph physics solver families implemented by runtime adapters.

## Inheritance

- Enum
- GraphPhysicsSolver

## Usage

 Explore 10 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 8

- Property [GraphPhysicsOptions.Solver](/api/chartforgex-interactivity-graphphysicsoptions/#property-solver)
- Field [GraphPhysicsSolver.BarnesHut](/api/chartforgex-interactivity-graphphysicssolver/#field-barneshut)
- Field [GraphPhysicsSolver.ForceAtlas2](/api/chartforgex-interactivity-graphphysicssolver/#field-forceatlas2)
- Field [GraphPhysicsSolver.HierarchicalRepulsion](/api/chartforgex-interactivity-graphphysicssolver/#field-hierarchicalrepulsion)
- Field [GraphPhysicsSolver.None](/api/chartforgex-interactivity-graphphysicssolver/#field-none)
- Field [GraphPhysicsSolver.Repulsion](/api/chartforgex-interactivity-graphphysicssolver/#field-repulsion)
- Field [GraphPhysicsSolver.StaticPrepared](/api/chartforgex-interactivity-graphphysicssolver/#field-staticprepared)
- Property [VisNetworkPhysicsOptions.Solver](/api/chartforgex-interactivity-visnetworkphysicsoptions/#property-solver)

### Accepted by parameters 2

- Extension method [GraphPhysicsOptions.Solver](/api/chartforgex-interactivity-graphphysicsoptions/#extension-solver-chartforgex-interactivity-graphphysicsoptions-chartforgex-interactivity-graphphysicssolver) parameter `value`
- Method [GraphPhysicsOptionsFluent.Solver](/api/chartforgex-interactivity-graphphysicsoptionsfluent/#method-solver-chartforgex-interactivity-graphphysicsoptions-chartforgex-interactivity-graphphysicssolver) parameter `value`

 Filter members   

    Show inherited   

 

## Inherited Methods

 `public int CompareTo(object? target)` [#](#method-compareto-object) 

Inherited from Enum

Parameters

**target object? required**

Returns

 `int` 

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

Inherited from Enum

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from Enum

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

 `public TypeCode GetTypeCode()` [#](#method-gettypecode) 

Inherited from Enum

Returns

 `TypeCode` 

 `public bool HasFlag(Enum flag)` [#](#method-hasflag-enum) 

Inherited from Enum

Parameters

**flag Enum required**

Returns

 `bool` 

 ToString 4 overloads 

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

Inherited from Enum

Returns

 `string` 

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

Inherited from Enum

Parameters

**format string? required**

Returns

 `string` 

 `public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString() instead.")` 

Parameters

**provider IFormatProvider? required**

Returns

 `string` 

 `public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString(String) instead.")` 

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

 `string` 

## Values

 `public const GraphPhysicsSolver None` [#](#field-none) 

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

Do not run physics; render caller-provided or server-prepared positions.

Value: `0`

 `public const GraphPhysicsSolver StaticPrepared` [#](#field-staticprepared) 

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

Use deterministic positions prepared by ChartForgeX before adapter rendering.

Value: `1`

 `public const GraphPhysicsSolver Repulsion` [#](#field-repulsion) 

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

Use distance-limited node repulsion with edge springs.

Value: `2`

 `public const GraphPhysicsSolver BarnesHut` [#](#field-barneshut) 

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

Use a Barnes-Hut quadtree for scalable inverse-square repulsion.

Value: `3`

 `public const GraphPhysicsSolver ForceAtlas2` [#](#field-forceatlas2) 

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

Use a degree-weighted ForceAtlas2-style solver accelerated by a quadtree for large scenes.

Value: `4`

 `public const GraphPhysicsSolver HierarchicalRepulsion` [#](#field-hierarchicalrepulsion) 

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

Use level-aware repulsion for directed layered graphs.

Value: `5`

<!-- PowerForge markdown artifact sha256:1AEAC40E8659451662A85F0DD08AA32AD72D50CFFAEE3DFA089B7A69256EFD30 -->
