org.dllearner.algorithms.el
Class ELDescriptionNodeComparator
java.lang.Object
org.dllearner.algorithms.el.ELDescriptionNodeComparator
- All Implemented Interfaces:
- Comparator<ELDescriptionNode>
public class ELDescriptionNodeComparator
- extends Object
- implements Comparator<ELDescriptionNode>
Compares two EL description trees. It is a lexicographic order
according to the following criteria:
- number of children
- size of label
- string comparison for each class in the label
- recursive call on each child (first compare edge label, then child node)
- Author:
- Jens Lehmann
ELDescriptionNodeComparator
public ELDescriptionNodeComparator()
compare
public int compare(ELDescriptionNode node1,
ELDescriptionNode node2)
- Specified by:
compare in interface Comparator<ELDescriptionNode>
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann