/**
 * 残量网络中的一条弧
 * An arc in the residual network.
 */ export interface McmfEdge { /**
     * The starting node of the arc.
     */ from : number ; /**
     * The ending node of the arc.
     */ to : number ; /**
     * Capacity of the arc.
     */ cap : number ; /**
     * Flow on the arc.
     */ flow : number ; /**
     * Price of every unit flow.
     */ cost : number ; } export interface McmfContext { /**
     *
     */ edgeTot : number ; /**
     *
     */ dist : number [ ] ; /**
     *
     */ edges : McmfEdge [ ] ; /**
     *
     */ G : number [ ] [ ] ; } export interface Mcmf { param source param target param n init ( source , target , n ) : void ; param from param to param cap param cost addEdge ( from , to , cap , cost ) : void ; returns minCostMaxFlow ( ) : [ number , number ] ; param fn solve ( fn ) : void ; }