Closed parasitic flow loops and dominated loops in networks