Interface: EdgeSpec
@kortexya/reasoninglayer / EdgeSpec
Interface: EdgeSpec
Section titled “Interface: EdgeSpec”Defined in: src/types/flow-networks.ts:37
A single directed edge in the flow network.
Properties
Section titled “Properties”capacity
Section titled “capacity”capacity:
number
Defined in: src/types/flow-networks.ts:43
Capacity (must be ≥ 0).
optionalcost?:number|null
Defined in: src/types/flow-networks.ts:48
Optional per-unit-flow cost. Defaults to zero — pure max-flow algorithms ignore this field.
from:
string
Defined in: src/types/flow-networks.ts:39
Source node name. Must appear in the network’s node list.
label?
Section titled “label?”
optionallabel?:string|null
Defined in: src/types/flow-networks.ts:54
Optional caller-supplied label. Must be unique across the network when present. Used to reference the edge in commit requests and to identify it in solver output.
to:
string
Defined in: src/types/flow-networks.ts:41
Destination node name. Must appear in the network’s node list.