fix to convenience function in max-flow