Class ChildOrderEdgeFormat<L extends Label>
java.lang.Object
org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat<L>
org.variantsync.diffdetective.variation.diff.serialize.edgeformat.ChildOrderEdgeFormat<L>
- All Implemented Interfaces:
LinegraphFormat
An edge format encoding the child index of this edge.
The child index is the index of the child to the parent of the edge. If there is no child parent
relationship between the children in a given edge, the child index is -1.
This index is encoded into decimal and delimited by a semicolon from the previous value.
This format is mainly useful to equivalence of two
VariationDiff
s, for example in tests.- Author:
- Benjamin Moosherr
-
Nested Class Summary
Nested classes/interfaces inherited from class org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat
EdgeLabelFormat.Direction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlabelOf
(StyledEdge<La> edge) Converts aStyledEdge
into a label suitable for exporting.Methods inherited from class org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat
connect, connectAccordingToLabel, getEdgeDirection, multilineLabelOf, setEdgeDirection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Constructor Details
-
ChildOrderEdgeFormat
public ChildOrderEdgeFormat()
-
-
Method Details
-
labelOf
Description copied from class:EdgeLabelFormat
Converts aStyledEdge
into a label suitable for exporting. This may be human readable text or machine parseable metadata.- Specified by:
labelOf
in classEdgeLabelFormat<L extends Label>
- Parameters:
edge
- TheStyledEdge
to be labeled- Returns:
- a label for
edge
-