Apply yapf on examples/python/*.py

This commit is contained in:
Corentin Le Molgat
2018-11-28 10:56:33 +01:00
parent f2573d33b1
commit c2ae098d34
39 changed files with 1168 additions and 1408 deletions

View File

@@ -63,9 +63,10 @@ def MinCostFlow():
print('Total flow', min_cost_flow.OptimalCost(), '/', expected_cost)
for i in range(0, min_cost_flow.NumArcs()):
if min_cost_flow.Flow(i) > 0:
print('From source %d to target %d: cost %d' % (
min_cost_flow.Tail(i), min_cost_flow.Head(i) - num_sources,
min_cost_flow.UnitCost(i)))
print('From source %d to target %d: cost %d' %
(min_cost_flow.Tail(i),
min_cost_flow.Head(i) - num_sources,
min_cost_flow.UnitCost(i)))
else:
print('There was an issue with the min cost flow input.')