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
VariationDiffs, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlabelOf(StyledEdge<La> edge) Converts aStyledEdgeinto a label suitable for exporting.Methods inherited from class org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat
connect, connectAccordingToLabel, getEdgeDirection, multilineLabelOf, setEdgeDirectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Constructor Details
-
ChildOrderEdgeFormat
public ChildOrderEdgeFormat()
-
-
Method Details
-
labelOf
Description copied from class:EdgeLabelFormatConverts aStyledEdgeinto a label suitable for exporting. This may be human readable text or machine parseable metadata.- Specified by:
labelOfin classEdgeLabelFormat<L extends Label>- Parameters:
edge- TheStyledEdgeto be labeled- Returns:
- a label for
edge
-