forked from divarvel/GraphToolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maxflowmincost.json
70 lines (68 loc) · 1.53 KB
/
maxflowmincost.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"oriented": true,
"nodes": {
"s": {},
"A": {},
"B": {},
"C": {},
"D": {},
"E": {},
"F": {},
"t": {}
},
"edges": [{"start": "s",
"stop": "A",
"capacity": 5,
"cost": 2
},
{"start": "s",
"stop": "B",
"capacity": 4,
"cost": 3
},
{"start": "s",
"stop": "C",
"capacity": 3,
"cost": 1
},
{"start": "A",
"stop": "D",
"capacity": 3,
"cost": 2
},
{"start": "B",
"stop": "E",
"capacity": 3,
"cost": 2
},
{"start": "C",
"stop": "F",
"capacity": 5,
"cost": 2
},
{"start": "B",
"stop": "F",
"capacity": 2,
"cost": 3
},
{"start": "E",
"stop": "F",
"capacity": 1,
"cost": 5
},
{"start": "D",
"stop": "t",
"capacity": 3,
"cost": 4
},
{"start": "E",
"stop": "t",
"capacity": 4,
"cost": 1
},
{"start": "F",
"stop": "t",
"capacity": 4,
"cost": 3
}]
}