Skip to content

Interface: SolveFlowNetworkResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SolveFlowNetworkResponse

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

Solver output. Fields irrelevant to the chosen algorithm are undefined (the backend omits them via skip_serializing_if).

algorithm: FlowAlgorithm

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

Echo of the algorithm dispatched.


optional classifications?: EdgeClassification[] | null

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

Per-edge classification (classify_* algorithms only).


edgeFlows: EdgeFlow[]

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

Per-edge flow snapshot.


optional minCut?: MinCutReport | null

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

Min-cut partition (min_cut algorithm only).


optional totalCost?: number | null

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

Total cost of the realised flow (mcmf only).


optional totalFlow?: number | null

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

Total flow source → sink (max-flow / mcmf / min-cut).