Click or drag to resize
UnionFind Class
Implements a very simple union-find data structure.
Inheritance Hierarchy
SystemObject
  Network.Sim.MiscellaneousUnionFind

Namespace: Network.Sim.Miscellaneous
Assembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class UnionFind

The UnionFind type exposes the following members.

Constructors
  NameDescription
Public methodUnionFind
Initializes a new instance of the UnionFind class with the specified number of elements.
Top
Properties
  NameDescription
Public propertyCount
The number of connected components.
Top
Methods
  NameDescription
Public methodConnected
Determines whether the specified elements are in the same component.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnion
Merges the components containing the specified elements into a single component.
Top
Remarks
Cmp. "Algorithms, Fourth Edition", R. Sedgewick, AW.
See Also