Table of Contents

Interface IWeightedEdge<TVertex, TWeight>

Namespace
Graph1x.Edges
Assembly
Graph1x.dll

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

TVertex

The vertex type.

TWeight

The numeric weight type.

Inherited Members

Properties

Weight

Gets the weight of the edge.

TWeight Weight { get; }

Property Value

TWeight