Enum EdgeOrientation
java.lang.Object
java.lang.Enum<EdgeOrientation>
es.uam.eps.ir.relison.graph.edges.EdgeOrientation
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EdgeOrientation>,java.lang.constant.Constable
public enum EdgeOrientation extends java.lang.Enum<EdgeOrientation>
Indicates the orientation of the edges to take.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INOrientation for selecting the incoming neighborhood (incident nodes).MUTUALOrientation for selecting neighbors which are both adjacent and incident.OUTOrientation for selecting the outgoing neighborhood (adjacent nodes).UNDOrientation for selecting the undirected neighbor (both adjacent and incident nodes). -
Constructor Summary
Constructors Modifier Constructor Description privateEdgeOrientation() -
Method Summary
Modifier and Type Method Description EdgeOrientationcomplementarySelection()Selection for the complementary graph.EdgeOrientationinvertSelection()Given an edge orientation, returns the opposite orientation.static EdgeOrientationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EdgeOrientation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OUT
Orientation for selecting the outgoing neighborhood (adjacent nodes). -
IN
Orientation for selecting the incoming neighborhood (incident nodes). -
UND
Orientation for selecting the undirected neighbor (both adjacent and incident nodes). -
MUTUAL
Orientation for selecting neighbors which are both adjacent and incident.
-
-
Constructor Details
-
EdgeOrientation
private EdgeOrientation()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
invertSelection
Given an edge orientation, returns the opposite orientation.- Returns:
- the opposite orientation.
-
complementarySelection
Selection for the complementary graph.- Returns:
- the selection for the complementary graph.
-