Updated MaximumFlow Class