Class EdgeComparer<TWeight>
- Namespace
- AlgorithmsSW.EdgeWeightedGraph
- Assembly
- AlgorithmsSW.dll
A comparer for weighted edges.
public class EdgeComparer<TWeight> : IComparer<Edge<TWeight>> where TWeight : IComparisonOperators<TWeight, TWeight, bool>
Type Parameters
TWeight
The type of the weights.
- Inheritance
-
EdgeComparer<TWeight>
- Implements
- Inherited Members
- Extension Methods
Methods
Compare(Edge<TWeight>?, Edge<TWeight>?)
Compares two edges by their weights.
public int Compare(Edge<TWeight>? x, Edge<TWeight>? y)