|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Dijkstra.Element>
org.graphstream.algorithm.Dijkstra.Element
public static enum Dijkstra.Element
This enumeration is used to specify how the length of a path is computed
Enum Constant Summary | |
---|---|
EDGE
The length of a path is the sum of the lengths of its edges. |
|
EDGE_AND_NODE
The length of a path is the sum of the lengths of its edges and nodes. |
|
NODE
The length of a path is the sum of the lengths of its nodes. |
Method Summary | |
---|---|
static Dijkstra.Element |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Dijkstra.Element[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Dijkstra.Element EDGE
public static final Dijkstra.Element NODE
public static final Dijkstra.Element EDGE_AND_NODE
Method Detail |
---|
public static Dijkstra.Element[] values()
for (Dijkstra.Element c : Dijkstra.Element.values()) System.out.println(c);
public static Dijkstra.Element valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |