Lab 6.2 Edmond Karp

Lab 6.2 Edmond Karp

You cannot submit for this problem because the homework's deadline is due.

Description

Use Python3 or OCmal to implement Edmonds Karp algorithm.

Submission Format

Submit a tar or zip file including a script named EdmondsKarp.ml or EdmondsKarp.py and all the related class you have implemented. There are no restriction on the filenames of your imported classes.

IO

Input

The first line contains the number of edges edge_num.
Starting from the second line, information of directed edges will be provided in the form of nodeA nodeB weight.
The final two lines will give you the start and terminate node.

Output

The maximum flow ( a single integer value )

Sample IO

Sample 1

input

4
s d 10
s c 9
d t 8
c t 9
s
t

Output

17

Lab 6

Not Claimed
Status
Finished
Problems
3
Open Since
2021-11-20 00:00
DDL
2021-12-09 23:59
Extension
72.0 hour(s)