Skip to content
ChartForgeX
Class

GraphSceneExtensions

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
Modifiers
static

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

Inheritance

  • object
  • GraphSceneExtensions

Methods

public static GraphScene AddCluster(GraphScene scene, string id, string label, string[] nodeIds, Action<GraphSceneCluster>? configure = null) #

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

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

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.