Enum Class EdgeLabelFormat.Direction

java.lang.Object
java.lang.Enum<EdgeLabelFormat.Direction>
org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat.Direction
All Implemented Interfaces:
Serializable, Comparable<EdgeLabelFormat.Direction>, Constable
Enclosing class:
EdgeLabelFormat<L extends Label>

public static enum EdgeLabelFormat.Direction extends Enum<EdgeLabelFormat.Direction>
Directions of edges. Describes if a linegraph edge describes an edge from a parent to a child node or vice versa.
  • Enum Constant Details

  • Field Details

    • Default

      public static final EdgeLabelFormat.Direction Default
      Default direction is child to parent as described in our paper.
  • Constructor Details

    • Direction

      private Direction()
  • Method Details

    • values

      public static EdgeLabelFormat.Direction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EdgeLabelFormat.Direction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • sort

      public <A> org.variantsync.functjonal.Pair<A,A> sort(A child, A parent)
      Sort two values according to this direction. The first argument belongs to a child node, the second argument belongs to a parent node. Both arguments will be ordered such that they comply to this direction.
      Type Parameters:
      A - Value type.
      Parameters:
      child - A value related to a child node.
      parent - A value related to a parent node.
      Returns:
      Both values sorted according to this direction.