Package cdc.graphs
Enum Class NodeRelativePosition
- All Implemented Interfaces:
Serializable,Comparable<NodeRelativePosition>,Constable
Enumeration of possible relative position of 2 nodes in a directed graph.
- Author:
- Damien Carbonne
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere is a loop passing through both nodes.The 2 nodes are the same.The first node is over the second one.The first node is under the second one.The 2 nodes are not related. -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeRelativePositionReturns the enum constant of this class with the specified name.static NodeRelativePosition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAME
The 2 nodes are the same. -
STRICTLY_OVER
The first node is over the second one.There is a path from first node to second one.
-
STRICTLY_UNDER
The first node is under the second one.There is a path from second bode to first one.
-
IN_LOOP
There is a loop passing through both nodes.This should not exist if the graph describes a partial or total order.
-
UNRELATED
The 2 nodes are not related.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-