Skip to content

Interface: EdgeSpec

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FlowNetworks / EdgeSpec

Interface: EdgeSpec

Defined in: src/types/flow-networks.ts:37

A single directed edge in the flow network.

Properties

capacity

capacity: number

Defined in: src/types/flow-networks.ts:43

Capacity (must be ≥ 0).


cost?

optional cost: 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

from: string

Defined in: src/types/flow-networks.ts:39

Source node name. Must appear in the network’s node list.


label?

optional label: 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

to: string

Defined in: src/types/flow-networks.ts:41

Destination node name. Must appear in the network’s node list.