Class SymmetricRelationship
java.lang.Object
net.didion.jwnl.data.relationship.Relationship
net.didion.jwnl.data.relationship.SymmetricRelationship
A symmetric relationship is one whose type is symmetric (its own inverse). An example of a symmetric
relationship is synonomy (since, if a is a synonym of b, then be is a synonym of a). Symmetric relationsips
differ from asymmetric relationships in that there is no definite divergence point between the ancestry of
the source and target synsets. Another way of saying this is that the target synset will always been in
the source's ancestry, and vice versa. For this reason, symmetric relationships have no concept of a
common parent index.
-
Constructor Summary
ConstructorsConstructorDescriptionSymmetricRelationship
(PointerType type, PointerTargetNodeList nodes, Synset sourceSynset, Synset targetSynset) -
Method Summary
Methods inherited from class net.didion.jwnl.data.relationship.Relationship
equals, getDepth, getNodeList, getSize, getSourcePointerTarget, getSourceSynset, getTargetPointerTarget, getTargetSynset, getType, toString
-
Constructor Details
-
SymmetricRelationship
public SymmetricRelationship(PointerType type, PointerTargetNodeList nodes, Synset sourceSynset, Synset targetSynset)
-
-
Method Details
-
reverse
- Specified by:
reverse
in classRelationship
-