Back

residual-capacity (clj)

(source)

function

(residual-capacity capacity flow v1 v2)
Computes the residual capacity between nodes v1 and v2. Capacity is a function that takes two nodes, and returns the capacity on the edge between them, if any. Flow is the adjacency map which represents the current flow in the network.

Examples