public interface FlowArcProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
long |
getCapacity()
Capacity of the arc.
|
long |
getHead()
optional int64 head = 2; |
long |
getTail()
A directed arc goes from a tail node to a head node.
|
long |
getUnitCost()
Cost of this arc per unit of flow.
|
boolean |
hasCapacity()
Capacity of the arc.
|
boolean |
hasHead()
optional int64 head = 2; |
boolean |
hasTail()
A directed arc goes from a tail node to a head node.
|
boolean |
hasUnitCost()
Cost of this arc per unit of flow.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasTail()
A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).
optional int64 tail = 1;
long getTail()
A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).
optional int64 tail = 1;
boolean hasHead()
optional int64 head = 2;
long getHead()
optional int64 head = 2;
boolean hasCapacity()
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero, it is equivalent to not including the arc in the FlowModelProto.
optional int64 capacity = 3 [default = 1];
long getCapacity()
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero, it is equivalent to not including the arc in the FlowModelProto.
optional int64 capacity = 3 [default = 1];
boolean hasUnitCost()
Cost of this arc per unit of flow. Note that it can take any positive, negative or null value.
optional int64 unit_cost = 4 [default = 0];
long getUnitCost()
Cost of this arc per unit of flow. Note that it can take any positive, negative or null value.
optional int64 unit_cost = 4 [default = 0];
Copyright © 2025. All rights reserved.