Enum Constant and Description |
---|
FLOW
The type of the flow in the network is normal that means a flow with the properties
the flow f(e) of the edge e with a weight w(e) is
0 <= f(e) <= w(e)
for all nodes except the source and the target: the amount of the flow into the node is equal to the amount of the flow out of it
|
PREFLOW
The type of the flow in the network is a preflow that means a flow with the properties
the flow f(e) of the edge e with a weight w(e) is
0 <= f(e) <= w(e)
for all nodes except the source and the target: the amount of the flow into the node is greater or equal to the amount of the flow out of it
|
Modifier and Type | Method and Description |
---|---|
static FlowType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlowType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowType FLOW
0 <= f(e) <= w(e)
public static final FlowType PREFLOW
0 <= f(e) <= w(e)
public static FlowType[] values()
for (FlowType c : FlowType.values()) System.out.println(c);
public static FlowType 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