Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

union

UnionFind.union(*objects)[source]

Find the sets containing the objects and merge them all.