12 lines
211 B
Java
12 lines
211 B
Java
|
package DataStructures.DisjointSets;
|
||
|
|
||
|
public class Node<T> {
|
||
|
public int rank;
|
||
|
public Node<T> parent;
|
||
|
public T data;
|
||
|
public Node(T data) {
|
||
|
this.data = data;
|
||
|
parent = this;
|
||
|
}
|
||
|
}
|