The Algorithms logo
The Algorithms
AboutDonate

Node

N
T
N
A
s
N
A
L
and 1 more contributors
package com.thealgorithms.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;
    }
}