commented out max flow since not available on multidigraph