GraphScene
ChartForgeX.Interactivity
Describes a host-neutral graph exploration scene that adapters can render with SVG, Canvas, WebGL, desktop, or native controls.
Inheritance
- object
- GraphScene
Usage
Explore 39 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 11
- Extension method GraphScene.AddCluster
- Extension method GraphScene.AddEdge
- Extension method GraphScene.AddNode
- Method GraphScene.Create
- Method GraphSceneExtensions.AddCluster
- Method GraphSceneExtensions.AddEdge
- Method GraphSceneExtensions.AddNode
- Method TopologyGraphExplorerExtensions.ToGraphScene
- Method VisNetworkGraph.ToGraphScene
- Property VisNetworkMigrationResult.Scene
- Extension method TopologyChart.ToGraphScene
Accepted by parameters 28
- Extension method GraphScene.AddCluster
- Extension method GraphScene.AddEdge
- Extension method GraphScene.AddNode
- Extension method GraphScene.ApplyPatch
- Extension method GraphScene.CreateNeighborhood
- Extension method GraphScene.CreateStages
- Extension method GraphScene.GetEffectiveClusters
- Extension method GraphScene.SaveGraphStageImages
- Extension method GraphScene.ToGraphExplorerHtmlFragment
- Extension method GraphScene.ToGraphExplorerHtmlPage
- Extension method GraphScene.ToGraphPng
- Extension method GraphScene.ToGraphSvg
- Method GraphSceneClusterExtensions.GetEffectiveClusters
- Method GraphSceneExtensions.AddCluster
- Method GraphSceneExtensions.AddEdge
- Method GraphSceneExtensions.AddNode
- Method GraphSceneNeighborhoodPlanner.CreateNeighborhood
- Method GraphScenePatchExtensions.ApplyPatch
- Method GraphSceneStagePlanner.CreateStages
- Method GraphExplorerExtensions.ToGraphExplorerHtmlFragment
- Method GraphExplorerExtensions.ToGraphExplorerHtmlPage
- Method GraphSceneStaticExtensions.SaveGraphStageImages
- Method GraphSceneStaticExtensions.ToGraphPng
- Method GraphSceneStaticExtensions.ToGraphSvg
- Method HtmlGraphExplorerRenderer.RenderFragment
- Method HtmlGraphExplorerRenderer.RenderPage
- Method HtmlGraphExplorerRenderer.RenderStaticPng
- Method HtmlGraphExplorerRenderer.RenderStaticSvg
Constructors
public GraphScene() #Methods
Inherited Methods
Properties
public string Id { get; set; } #Gets or sets the stable scene identifier used for host events and persisted state.
public List<GraphSceneNode> Nodes { get; } #Gets graph nodes keyed by stable node id.
public List<GraphSceneEdge> Edges { get; } #Gets graph edges keyed by stable edge id.
public List<GraphSceneCluster> Clusters { get; } #Gets semantic or computed clusters that an adapter can collapse, expand, or summarize.
public GraphSceneOptions Options { get; } #Gets reusable graph exploration settings and capability hints.
public Dictionary<string, string> Metadata { get; } #Gets arbitrary scene-level metadata for host adapters and diagnostics.
Extension 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.
public static GraphScenePatchResult ApplyPatch(GraphScene scene, GraphScenePatch patch) #Applies a patch atomically and validates the complete scene before committing it.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The graph document to update.
- patch ChartForgeX.Interactivity.GraphScenePatch
- The requested additions, replacements, and removals.
public static GraphSceneStage CreateNeighborhood(GraphScene scene, string rootNodeId, Action<GraphSceneNeighborhoodOptions>? configure = null) #Creates a view centered on a node, with explicit node and relationship budgets.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The complete source scene. Replan after changing its nodes or relationships.
- rootNodeId string
- The node retained on every neighborhood page.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions>? = null
- Optional distance, budget, and paging settings.
Returns
GraphSceneStage A stage consumable by the static graph exporters. Counts include everything omitted from the source scene.public static IReadOnlyList<GraphSceneStage> CreateStages(GraphScene scene, Action<GraphSceneStageOptions>? configure = null) #Creates overview-to-detail stages for a graph scene.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The graph scene to plan.
- configure System.Action<ChartForgeX.Interactivity.GraphSceneStageOptions>? = null
- Optional stage planning configuration.
public static IReadOnlyList<GraphSceneCluster> GetEffectiveClusters(GraphScene scene) #Gets declared clusters plus any reusable clusters derived from the active cluster policy.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The source graph scene.
Returns
IReadOnlyList<GraphSceneCluster> Cluster definitions that adapters should render, collapse, search, export, and expose through host events.public static IReadOnlyList<GraphSceneStageImageResult> SaveGraphStageImages(GraphScene scene, string outputDirectory, string fileNamePrefix, Action<GraphSceneStageImageOptions>? configure = null) #Saves deterministic overview-to-detail graph stage images without creating interactive HTML.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- outputDirectory string
- fileNamePrefix string
- configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStageImageOptions>? = null
Returns
IReadOnlyList<GraphSceneStageImageResult>public static string ToGraphExplorerHtmlFragment(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null) #Renders the graph scene to an embeddable fragment with inline assets.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The graph scene to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null
- Optional adapter configuration callback.
Returns
string An embeddable HTML fragment.public static string ToGraphExplorerHtmlPage(GraphScene scene, Action<HtmlGraphExplorerOptions>? configure = null) #Renders the graph scene to a complete self-contained HTML page.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- The graph scene to render.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null
- Optional adapter configuration callback.
Returns
string A complete HTML document.public static byte[] ToGraphPng(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null) #Renders a graph scene or planned stage to PNG bytes without opening a browser.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- stage ChartForgeX.Interactivity.GraphSceneStage? = null
- configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null
Returns
byte[]public static string ToGraphSvg(GraphScene scene, GraphSceneStage? stage = null, Action<GraphSceneStaticRenderOptions>? configure = null) #Renders a graph scene or planned stage to script-free SVG.
Parameters
- scene ChartForgeX.Interactivity.GraphScene
- stage ChartForgeX.Interactivity.GraphSceneStage? = null
- configure System.Action<ChartForgeX.Interactivity.Html.GraphSceneStaticRenderOptions>? = null
Returns
string