Algorithms..::..DisjointSets<(Of <(<'T>)>)> Method (IEnumerable<(Of <(<'T>)>)>, IEnumerable<(Of <(<'T>)>)>, IEqualityComparer<(Of <(<'T>)>)>)
Determines if two collections are disjoint, considered as sets. Two sets are disjoint if they
have no common items.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public static bool DisjointSets<T>( IEnumerable<T> collection1, IEnumerable<T> collection2, IEqualityComparer<T> equalityComparer )
Public Shared Function DisjointSets(Of T) ( _ collection1 As IEnumerable(Of T), _ collection2 As IEnumerable(Of T), _ equalityComparer As IEqualityComparer(Of T) _ ) As Boolean
public: generic<typename T> static bool^ DisjointSets( IEnumerable<T>^ collection1, IEnumerable<T>^ collection2, IEqualityComparer<T>^ equalityComparer )
Type Parameters
- T
Parameters
- collection1
- Type: IEnumerable<(Of <(<'T>)>)>
The first collection.
- collection2
- Type: IEnumerable<(Of <(<'T>)>)>
The second collection.
- equalityComparer
- Type: IEqualityComparer<(Of <(<'T>)>)>
The IEqualityComparerComparer<T> used to compare items for equality. Only the Equals and GetHashCode member functions of this interface are called.