Header menu logo Sigma.NET

GraphData Type

Represents the data structure for a graph, including nodes and edges.

The GraphData type is used to manage and manipulate the graph's nodes and edges. Nodes and edges are stored in internal `ResizeArray` collections for efficient access and modification.

Constructors

Constructor Description

GraphData()

Full Usage: GraphData()

Returns: GraphData
Returns: GraphData

Instance members

Instance member Description

this.Edges

Full Usage: this.Edges

Returns: ResizeArray<Edge>

Internal storage for edges. A collection of edges in the graph. Edges are stored in a `ResizeArray` to allow dynamic resizing and efficient access.

Returns: ResizeArray<Edge>

this.Nodes

Full Usage: this.Nodes

Returns: ResizeArray<Node>

Internal storage for nodes. A collection of nodes in the graph. Nodes are stored in a `ResizeArray` to allow dynamic resizing and efficient access.

Returns: ResizeArray<Node>

this.addEdge edge

Full Usage: this.addEdge edge

Parameters:
    edge : Edge - Edge to be added.

Adds an edge to the graph.

edge : Edge

Edge to be added.

this.addNode node

Full Usage: this.addNode node

Parameters:
    node : Node - Node to be added.

Adds a node to the graph.

node : Node

Node to be added.

Type something to start searching.