public enum RankingPolicy extends Enum<RankingPolicy>
TopologicalLayerer.getRankingPolicy()
Enum Constant and Description |
---|
DOWN_SHIFT
A ranking policy that specifies that nodes are re-ranked by an inexpensive downshift rule.
|
NO_RERANKING
A ranking policy that specifies that nodes are not re-ranked after the initial topological layering step.
|
TIGHT_TREE
A ranking policy that specifies that nodes are re-ranked by finding a spanning tree that contains only tight (length
1 ) edges. |
Modifier and Type | Method and Description |
---|---|
static RankingPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static RankingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RankingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RankingPolicy DOWN_SHIFT
public static final RankingPolicy NO_RERANKING
public static final RankingPolicy TIGHT_TREE
1
) edges.public static final RankingPolicy fromOrdinal(int ordinal)
public int value()
public static RankingPolicy 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 RankingPolicy[] values()
for (RankingPolicy c : RankingPolicy.values()) System.out.println(c);