private static enum Graphs.NodeVisitState extends java.lang.Enum<Graphs.NodeVisitState>
PENDING
means that the node is on
the stack of the DFS, while COMPLETE
means that the node and all its successors have
been already explored. Any node that has not been explored will not have a state at all.Modifier and Type | Method and Description |
---|---|
static Graphs.NodeVisitState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Graphs.NodeVisitState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Graphs.NodeVisitState PENDING
public static final Graphs.NodeVisitState COMPLETE
public static Graphs.NodeVisitState[] values()
for (Graphs.NodeVisitState c : Graphs.NodeVisitState.values()) System.out.println(c);
public static Graphs.NodeVisitState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null