Flow conservation (source code)

= Flow conservation

Flow conservation requires total inflow to equal total outflow at every vertex other than the source and sink, equivalently $\operatorname{div}f=0$ there.