public enum BfsDirection extends Enum<BfsDirection>
| Enum Constant and Description |
|---|
BOTH
An edge direction specifier for both incoming and outgoing edges.
|
PREDECESSOR
An edge direction specifier for incoming edges.
|
SUCCESSOR
An edge direction specifier for outgoing edges.
|
| Modifier and Type | Method and Description |
|---|---|
static BfsDirection |
fromOrdinal(int ordinal) |
int |
value() |
static BfsDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BfsDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BfsDirection BOTH
public static final BfsDirection PREDECESSOR
public static final BfsDirection SUCCESSOR
public static final BfsDirection fromOrdinal(int ordinal)
public int value()
public static BfsDirection valueOf(String name)
IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullname - the name of the enum constant to be returned.public static BfsDirection[] values()
for (BfsDirection c : BfsDirection.values()) System.out.println(c);