// This implements a basic generic tree, with labels of type T,
// pointer to the parent node, and a singly linked list of children nodes.
class Tree<T> {
private T label;
private Tree<T> parent;
private Tree<T> nextSibling; // next node on the list of parents's
// children
private Tree<T> firstChild; // first in the linked list of children
// Getters and setters
public T getLabel() { return label; }
public void setLabel(T...