Modify the capacity scaling algorithm so that it can find in polynomial time the maximum flow in a flow network where some of the edges have infinite capacity.

A) Polynomial time complexity
B) Infinite capacity scaling
C) Maximum flow modification
D) Capacity scaling algorithm