Package cdc.graphs

Enum Class NodeRelativePosition

java.lang.Object
java.lang.Enum<NodeRelativePosition>
cdc.graphs.NodeRelativePosition
All Implemented Interfaces:
Serializable, Comparable<NodeRelativePosition>, Constable

public enum NodeRelativePosition extends Enum<NodeRelativePosition>
Enumeration of possible relative position of 2 nodes in a directed graph.
Author:
Damien Carbonne
  • Enum Constant Details

    • SAME

      public static final NodeRelativePosition SAME
      The 2 nodes are the same.
    • STRICTLY_OVER

      public static final NodeRelativePosition STRICTLY_OVER
      The first node is over the second one.

      There is a path from first node to second one.

    • STRICTLY_UNDER

      public static final NodeRelativePosition STRICTLY_UNDER
      The first node is under the second one.

      There is a path from second bode to first one.

    • IN_LOOP

      public static final NodeRelativePosition IN_LOOP
      There is a loop passing through both nodes.

      This should not exist if the graph describes a partial or total order.

    • UNRELATED

      public static final NodeRelativePosition UNRELATED
      The 2 nodes are not related.
  • Method Details

    • values

      public static NodeRelativePosition[] 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 NodeRelativePosition 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