Class ChartGraphLink
A directed or undirected link between two graph nodes.
public sealed record ChartGraphLink : IEquatable<ChartGraphLink>
- Inheritance
-
ChartGraphLink
- Implements
- Inherited Members
Constructors
ChartGraphLink(string, string, double)
A directed or undirected link between two graph nodes.
public ChartGraphLink(string Source, string Target, double Value = 1)
Parameters
SourcestringThe source node identifier.
TargetstringThe target node identifier.
ValuedoubleThe link weight or flow.
Properties
Source
The source node identifier.
public string Source { get; init; }
Property Value
Target
The target node identifier.
public string Target { get; init; }
Property Value
Value
The link weight or flow.
public double Value { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out double)
public void Deconstruct(out string Source, out string Target, out double Value)
Parameters
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ChartGraphLink?)
public bool Equals(ChartGraphLink? other)
Parameters
otherChartGraphLink
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChartGraphLink?, ChartGraphLink?)
public static bool operator ==(ChartGraphLink? left, ChartGraphLink? right)
Parameters
leftChartGraphLinkrightChartGraphLink
Returns
operator !=(ChartGraphLink?, ChartGraphLink?)
public static bool operator !=(ChartGraphLink? left, ChartGraphLink? right)
Parameters
leftChartGraphLinkrightChartGraphLink