Working unrooted tree class