Skip to content
ChartForgeX
Class

VisNetworkGraph

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
Modifiers
sealed

Provides a typed compatibility envelope for common vis-network data and option concepts. The converter keeps GraphScene as the reusable ChartForgeX graph contract.

Inheritance

  • object
  • VisNetworkGraph

Usage

Explore 3 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.

Constructors

public VisNetworkGraph() #

Methods

public VisNetworkGraph AddEdge(string id, string from, string to, string? label = null, Action<VisNetworkEdge>? configure = null) #

Adds an edge to the compatibility graph.

Parameters

id string required
from string required
to string required
label string? = null optional
configure System.Action<ChartForgeX.Interactivity.VisNetworkEdge>? = null optional
public VisNetworkGraph AddNode(string id, string label, Action<VisNetworkNode>? configure = null) #

Adds a node to the compatibility graph.

Parameters

id string required
label string required
configure System.Action<ChartForgeX.Interactivity.VisNetworkNode>? = null optional
public static VisNetworkGraph Create() #

Creates a new compatibility graph.

Returns

VisNetworkGraph A graph that can be converted to GraphScene.
public GraphScene ToGraphScene(string id, string title) #

Converts this compatibility graph into the reusable ChartForgeX graph scene model.

Parameters

id string required
title string required

Returns

GraphScene

Properties

public List<VisNetworkNode> Nodes { get; } #

Gets the vis-style node collection.

public List<VisNetworkEdge> Edges { get; } #

Gets the vis-style edge collection.

public Dictionary<string, VisNetworkGroupOptions> Groups { get; } #

Gets group defaults keyed by group id.

public VisNetworkOptions Options { get; } #

Gets vis-style graph options.