| Total Complexity | 2 |
| Total Lines | 8 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | import unittest |
||
| 7 | class FordFulkersonMaxFlowUnitTest(unittest.TestCase): |
||
| 8 | def test_max_flow(self): |
||
| 9 | network = create_flow_network() |
||
| 10 | ff = FordFulkersonMaxFlow(network, 0, 7) |
||
| 11 | print('max-flow: '+str(ff.max_flow_value())) |
||
| 12 | self.assertEqual(28, ff.max_flow_value()) |
||
| 13 | for e in ff.min_cut(): |
||
| 14 | print('min-cut: ' + str(e)) |
||
| 15 | |||
| 18 |