Table of Contents

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
IComparer<Edge<TWeight>>
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)

Parameters

x Edge<TWeight>
y Edge<TWeight>

Returns

int