API Reference
Class
GraphSceneExtensions
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) #Returns:
GraphSceneAdds a cluster to the graph scene.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The graph scene.
- id System.String
- Stable cluster id.
- label System.String
- Cluster label.
- nodeIds System.String[]
- Node ids contained by the cluster.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneCluster>? = null
- Optional cluster configuration callback.
Returns
The current graph scene.
public static GraphScene AddEdge(GraphScene scene, String id, String sourceNodeId, String targetNodeId, String? label = null, Action<GraphSceneEdge>? configure = null) #Returns:
GraphSceneAdds an edge to the graph scene.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The graph scene.
- id System.String
- Stable edge id.
- sourceNodeId System.String
- Source node id.
- targetNodeId System.String
- Target node id.
- label System.String? = null
- Optional edge label.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneEdge>? = null
- Optional edge configuration callback.
Returns
The current graph scene.
public static GraphScene AddNode(GraphScene scene, String id, String label, Action<GraphSceneNode>? configure = null) #Returns:
GraphSceneAdds a node to the graph scene.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The graph scene.
- id System.String
- Stable node id.
- label System.String
- Node label.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneNode>? = null
- Optional node configuration callback.
Returns
The current graph scene.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?