Tree Comparison with Trevis

Trevis provides a selection of tree dissimilarity measures to compare trees. All of them implement the TreeDissimilarityMeasure interface. This interface looks as follows:

public interface TreeDissimilarityMeasure {
  public double compute(ContextTreeNode a, ContextTreeNode b);
}

To compare two trees, you have to compare their root nodes.