Table of Contents

Class ChartGraphLink

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A directed or undirected link between two graph nodes.

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

Constructors

A directed or undirected link between two graph nodes.

public ChartGraphLink(string Source, string Target, double Value = 1)

Parameters

Source string

The source node identifier.

Target string

The target node identifier.

Value double

The link weight or flow.

Properties

The source node identifier.

public string Source { get; init; }

Property Value

string

The target node identifier.

public string Target { get; init; }

Property Value

string

The link weight or flow.

public double Value { get; init; }

Property Value

double

Methods

public void Deconstruct(out string Source, out string Target, out double Value)

Parameters

Source string
Target string
Value double
public override bool Equals(object? obj)

Parameters

obj object

Returns

bool
public bool Equals(ChartGraphLink? other)

Parameters

other ChartGraphLink

Returns

bool
public override int GetHashCode()

Returns

int
public override string ToString()

Returns

string

Operators

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

Parameters

left ChartGraphLink
right ChartGraphLink

Returns

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

Parameters

left ChartGraphLink
right ChartGraphLink

Returns

bool