public class DisjointSet<T> extends Object
| Constructor and Description |
|---|
DisjointSet() |
| Modifier and Type | Method and Description |
|---|---|
T |
find(T element) |
boolean |
findAndUnion(T node1,
T node2) |
Collection<Set<T>> |
getEquivalentClasses() |
Copyright © 2012–2019. All rights reserved.