# HG changeset patch
# User gbe <gehrman@gmail.com>
# Date 1294797295 28800
# Node ID 7b2844b1374a87836c1a13bd2bbb03b2418aed15
# Parent 24aeabcfdbe53592bc54398f1e108ab67cedcb4f
Trac #9911: switch two lines to use for syntax instead of list comprehension.
diff r 24aeabcfdbe5 r 7b2844b1374a sage/graphs/digraph.py
a

b


1390  1390  n=self.order() 
1391  1391  
1392  1392  # The removed vertices cover all the back arcs ( third condition ) 
1393   [p.add_constraint(d[u]d[v]+n*(b[u]+b[v]),min=1) for (u,v) in self.edges(labels=None)] 
1394   [p.add_constraint(d[u],max=n) for u in self] 
 1393  for (u, v) in self.edges(labels=False): 
 1394  p.add_constraint(d[u]  d[v] + n*(b[u] + b[v]), min=1) 
 1395  for u in self: 
 1396  p.add_constraint(d[u], max=n) 
1395  1397  
1396  1398  p.set_objective(Sum([b[v] for v in self])) 
1397  1399  