static bool AreEqual(EdgeTriplet <T> x, EdgeTriplet <T> y) { return(EqualityComparer <T> .Default.Equals(x.Value1, y.Value1) && EqualityComparer <T> .Default.Equals(x.Value2, y.Value2) && MathUtils.AreEqual(x.Weight, y.Weight)); }
public override bool Equals(object obj) { EdgeTriplet <T> other = obj as EdgeTriplet <T>; return(other != null && AreEqual(this, other)); }