Skip to content

Interface: SolveFlowNetworkResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FlowNetworks / SolveFlowNetworkResponse

Interface: 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).

Properties

algorithm

algorithm: FlowAlgorithm

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

Echo of the algorithm dispatched.


classifications?

optional classifications: EdgeClassification[] | null

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

Per-edge classification (classify_* algorithms only).


edgeFlows

edgeFlows: EdgeFlow[]

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

Per-edge flow snapshot.


minCut?

optional minCut: MinCutReport | null

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

Min-cut partition (min_cut algorithm only).


totalCost?

optional totalCost: number | null

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

Total cost of the realised flow (mcmf only).


totalFlow?

optional totalFlow: number | null

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

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