# GraphSceneExtensions

Provides fluent helpers for building graph scenes without exposing adapter-specific DTOs.

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[GraphSceneExtensions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneExtensions.cs#L18)

**Modifiers**

static

Provides fluent helpers for building graph scenes without exposing adapter-specific DTOs.

## Inheritance

- object
- GraphSceneExtensions

 Filter members   

    Show inherited   

 

## Methods

 `public static GraphScene AddCluster(GraphScene scene, string id, string label, string[] nodeIds, Action<GraphSceneCluster>? configure = null)` [#](#method-addcluster-chartforgex-interactivity-graphscene-string-string-string-action-chartforgex-interactivity-graphscenecluster) 

[GraphSceneExtensions.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneExtensions.cs#L53)

Adds a cluster to the graph scene.

Parameters

**scene ChartForgeX.Interactivity.GraphScene required**

The graph scene.

**id string required**

Stable cluster id.

**label string required**

Cluster label.

**nodeIds string[] required**

Node ids contained by the cluster.

**configure System.Action<ChartForgeX.Interactivity.GraphSceneCluster>? = null optional**

Optional cluster configuration callback.

Returns

 `GraphScene` The current graph scene. 

 `public static GraphScene AddEdge(GraphScene scene, string id, string sourceNodeId, string targetNodeId, string? label = null, Action<GraphSceneEdge>? configure = null)` [#](#method-addedge-chartforgex-interactivity-graphscene-string-string-string-string-action-chartforgex-interactivity-graphsceneedge) 

[GraphSceneExtensions.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneExtensions.cs#L36)

Adds an edge to the graph scene.

Parameters

**scene ChartForgeX.Interactivity.GraphScene required**

The graph scene.

**id string required**

Stable edge id.

**sourceNodeId string required**

Source node id.

**targetNodeId string required**

Target node id.

**label string? = null optional**

Optional edge label.

**configure System.Action<ChartForgeX.Interactivity.GraphSceneEdge>? = null optional**

Optional edge configuration callback.

Returns

 `GraphScene` The current graph scene. 

 `public static GraphScene AddNode(GraphScene scene, string id, string label, Action<GraphSceneNode>? configure = null)` [#](#method-addnode-chartforgex-interactivity-graphscene-string-string-action-chartforgex-interactivity-graphscenenode) 

[GraphSceneExtensions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneExtensions.cs#L18)

Adds a node to the graph scene.

Parameters

**scene ChartForgeX.Interactivity.GraphScene required**

The graph scene.

**id string required**

Stable node id.

**label string required**

Node label.

**configure System.Action<ChartForgeX.Interactivity.GraphSceneNode>? = null optional**

Optional node configuration callback.

Returns

 `GraphScene` The current graph scene. 

## 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?` 

<!-- PowerForge markdown artifact sha256:2A43ECE9FB31632F38F68192C8AA1881B8DB1A46ACA431251076F7C2BEC6AC90 -->
