Enum Graph.EdgeType
- java.lang.Object
-
- java.lang.Enum<Graph.EdgeType>
-
- com.azure.resourcemanager.resources.fluentcore.dag.Graph.EdgeType
-
- All Implemented Interfaces:
Serializable,Comparable<Graph.EdgeType>
protected static enum Graph.EdgeType extends Enum<Graph.EdgeType>
The edge types in a graph.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKAn edge (u, v) is a back edge if v is ancestor of u.CROSSAn edge (u, v) is a cross edge if v is neither ancestor or descendant of u.FORWARDAn edge (u, v) is a forward edge if v is descendant of u.TREEAn edge (u, v) is a tree edge if v is visited the first time.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Graph.EdgeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Graph.EdgeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TREE
public static final Graph.EdgeType TREE
An edge (u, v) is a tree edge if v is visited the first time.
-
FORWARD
public static final Graph.EdgeType FORWARD
An edge (u, v) is a forward edge if v is descendant of u.
-
BACK
public static final Graph.EdgeType BACK
An edge (u, v) is a back edge if v is ancestor of u.
-
CROSS
public static final Graph.EdgeType CROSS
An edge (u, v) is a cross edge if v is neither ancestor or descendant of u.
-
-
Method Detail
-
values
public static Graph.EdgeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Graph.EdgeType c : Graph.EdgeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Graph.EdgeType valueOf(String name)
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-