JavaAlgorithms/DataStructures/DisjointSets/Node.java
2021-10-24 10:28:21 +03:00

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;
}
}