Esempio n. 1
0
 public DisjointSets(DisjointSets <T> otherDisjointSets) : this(otherDisjointSets?.GetSets() ?? throw new ArgumentNullException(nameof(otherDisjointSets)))
 {
 }
Esempio n. 2
0
 public static bool AreMembersOfTheSameSet <T>(this DisjointSets <T> @this, T x, T y) where T : IEquatable <T>
 {
     return(@this.FindSet(x).Equals(@this.FindSet(y)));
 }