tree-edit-distance

This library is an implementation of Zhang and Shasha's algorithm [Zhang89] for calculating tree edit distance.

License

License

GroupId

GroupId

de.unistuttgart.ims
ArtifactId

ArtifactId

tree-edit-distance
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

tree-edit-distance
This library is an implementation of Zhang and Shasha's algorithm [Zhang89] for calculating tree edit distance.
Project URL

Project URL

https://github.com/nilsreiter/tree-edit-distance
Source Code Management

Source Code Management

https://github.com/nilsreiter/tree-edit-distance

Download tree-edit-distance

How to add to project

<!-- https://jarcasting.com/artifacts/de.unistuttgart.ims/tree-edit-distance/ -->
<dependency>
    <groupId>de.unistuttgart.ims</groupId>
    <artifactId>tree-edit-distance</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/de.unistuttgart.ims/tree-edit-distance/
implementation 'de.unistuttgart.ims:tree-edit-distance:0.0.1'
// https://jarcasting.com/artifacts/de.unistuttgart.ims/tree-edit-distance/
implementation ("de.unistuttgart.ims:tree-edit-distance:0.0.1")
'de.unistuttgart.ims:tree-edit-distance:jar:0.0.1'
<dependency org="de.unistuttgart.ims" name="tree-edit-distance" rev="0.0.1">
  <artifact name="tree-edit-distance" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.unistuttgart.ims', module='tree-edit-distance', version='0.0.1')
)
libraryDependencies += "de.unistuttgart.ims" % "tree-edit-distance" % "0.0.1"
[de.unistuttgart.ims/tree-edit-distance "0.0.1"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.
https://travis-ci.org/nilsreiter/tree-edit-distance.svg?branch=master

Tree Edit Distance Library

This library is an implementation of Zhang and Shasha's algorithm [Zhang89] for calculating tree edit distance.

Usage

  1. Implement Tree interface.
  2. Implement EditScore interface for the Tree.
  3. Make a new TreeEditDistance instance with the EditScore instance, and execute calc method.

Example

Tree tree1 = makeMyTree1();
Tree tree2 = makeMyTree2();
EditScore score = new MyEditScore();
double dist = new TreeEditDistance(score).calc(tree1, tree2);
System.out.println("distance: " + dist);

See test programs for more information.

Download

Include via maven:

<dependency>
   <groupId>de.unistuttgart.ims</groupId>
   <artifactId>tree-edit-distance</artifactId>
   <version>0.0.1</version>
</dependency>

License

This library is distributed under the new BSD license. See LICENSE file.

Reference

[Zhang89] Kaizhong Zhang, Dennis Shashs. Simple fast algorithms for the editing distance between trees and related problems. SIAM Journal on Computing, vol. 18, issue 6, 1989.

Versions

Version
0.0.1