Class
GraphSceneExtensions
ChartForgeX.Interactivity
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
- The graph scene.
- id string
- Stable cluster id.
- label string
- Cluster label.
- nodeIds string[]
- Node ids contained by the cluster.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneCluster>? = null
- Optional cluster configuration callback.
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
- The graph scene.
- id string
- Stable edge id.
- sourceNodeId string
- Source node id.
- targetNodeId string
- Target node id.
- label string? = null
- Optional edge label.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneEdge>? = null
- Optional edge configuration callback.
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
- The graph scene.
- id string
- Stable node id.
- label string
- Node label.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneNode>? = null
- Optional node configuration callback.