Warning

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

networkx.utils.union_find.UnionFind.union

UnionFind.union(*objects)[source]

Find the sets containing the objects and merge them all.