Compares two edges by weight.
Note that CompareTo() is not consistent with Equals(),
which uses the reference equality implementation inherited from object.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int CompareTo(
Edge that
)
Parameters
- that
- Type: Algs4NetEdge
that the other edge
Return Value
Type:
Int32a negative integer, zero, or positive integer depending on whether
Implements
IComparableTCompareTo(T)
See Also