Enum Constant and Description |
---|
DIRECTED
the type of the graph is directed that means the graph can only contain directed edges
|
MIXED
the type of the graph is mixed that means the graph can contain directed and undirected edges
|
UNDIRECTED
the type of the graph is undirected that means the graph can only contain undirected edges
|
Modifier and Type | Method and Description |
---|---|
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type DIRECTED
public static final Type UNDIRECTED
public static final Type MIXED
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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