Skip to content

Interface: EdgeSpec

@kortexya/reasoninglayer


@kortexya/reasoninglayer / EdgeSpec

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

A single directed edge in the flow network.

capacity: number

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

Capacity (must be ≥ 0).


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: string

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

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


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: string

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

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