| Algorithm for Minimum Cost Ratio CycleLet Gbe a directed graph, let costandprofitbe two cost function on the edges ofG. Edge costs and profits 
        may be positive or negative, but there must not exist cycles of non-positive 
        cost with respect to bothcostandprofit. A minimum cost ratio cycle  Cis a cycle inGsuch that the ratiocost(C)/profit(C)is minimum among all cycles inG. MINIMUM_RATIO_CYCLE()computes a minimum cost ratio 
        cycleC(if there are no cycles of cost zero or less in G).
 Example of How to Use MINIMUM_RATIO_CYCLE() TipThis algorithm is mainly of theoretical interest. 
     |