Improve selection of node with minimum degree in cut functions.
Avoid deep copy and always use iterators for building auxiliary digraphs.