Interface IWeightedEdge<TVertex, TWeight>
An edge carrying a numeric weight. Any INumber<TSelf> works as the weight type (int, double, decimal, ...), so algorithms can compute over weights via generic math without boxing or conversions.
public interface IWeightedEdge<TVertex, TWeight> : IEdge<TVertex> where TVertex : notnull where TWeight : INumber<TWeight>
Type Parameters
TVertexThe vertex type.
TWeightThe numeric weight type.
- Inherited Members
Properties
Weight
Gets the weight of the edge.
TWeight Weight { get; }
Property Value
- TWeight