public class DisjointSet<T> extends Object
DisjointSet()
boolean
exists(T element)
int
find(T element)
List<Set<T>>
sets()
size(int component)
union(T element1, T element2)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DisjointSet()
public int union(T element1, T element2)
public int find(T element)
public boolean exists(T element)
public List<Set<T>> sets()
public int size(int component)
Copyright © 2019. All rights reserved.