示例#1
0
 public DisjointSets(DisjointSets <T> otherDisjointSets) : this(otherDisjointSets?.GetSets() ?? throw new ArgumentNullException(nameof(otherDisjointSets)))
 {
 }
示例#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)));
 }