Table of Contents

Class ChartGraphNode

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A node in a graph, flow, or diagram.

public sealed record ChartGraphNode : IEquatable<ChartGraphNode>
Inheritance
ChartGraphNode
Implements
Inherited Members

Constructors

ChartGraphNode(string, string, int)

A node in a graph, flow, or diagram.

public ChartGraphNode(string Id, string Label, int Stage = 0)

Parameters

Id string

A unique identifier referenced by links.

Label string

The visible node label.

Stage int

The optional horizontal stage used by a Sankey diagram.

Properties

Id

A unique identifier referenced by links.

public string Id { get; init; }

Property Value

string

Label

The visible node label.

public string Label { get; init; }

Property Value

string

Stage

The optional horizontal stage used by a Sankey diagram.

public int Stage { get; init; }

Property Value

int

Methods

Deconstruct(out string, out string, out int)

public void Deconstruct(out string Id, out string Label, out int Stage)

Parameters

Id string
Label string
Stage int

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartGraphNode?)

public bool Equals(ChartGraphNode? other)

Parameters

other ChartGraphNode

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartGraphNode?, ChartGraphNode?)

public static bool operator ==(ChartGraphNode? left, ChartGraphNode? right)

Parameters

left ChartGraphNode
right ChartGraphNode

Returns

bool

operator !=(ChartGraphNode?, ChartGraphNode?)

public static bool operator !=(ChartGraphNode? left, ChartGraphNode? right)

Parameters

left ChartGraphNode
right ChartGraphNode

Returns

bool