Class ZhangShashaTreeEditDistance.EditOperation<V>
java.lang.Object
org.jgrapht.alg.similarity.ZhangShashaTreeEditDistance.EditOperation<V>
- Type Parameters:
V- tree vertex type
- Enclosing class:
ZhangShashaTreeEditDistance<V,E>
Represents elementary action which changes the structure of a tree.
- Author:
- Semen Chudakov
-
Constructor Summary
ConstructorsConstructorDescriptionEditOperation(ZhangShashaTreeEditDistance.OperationType type, V firstOperand, V secondOperand) Constructs an instance of edit operation for the giventype,firstOperandandsecondOperand. -
Method Summary
-
Constructor Details
-
EditOperation
public EditOperation(ZhangShashaTreeEditDistance.OperationType type, V firstOperand, V secondOperand) Constructs an instance of edit operation for the giventype,firstOperandandsecondOperand.- Parameters:
type- type of the operationfirstOperand- first operand of the operationsecondOperand- second operand of the operation
-
-
Method Details
-
getType
Returns type of this operation.- Returns:
- oeration type
-
getFirstOperand
-
getSecondOperand
-
equals
-
hashCode
-
toString
-