[merge] cleanup from -catbox branch

This commit is contained in:
S.Çağlar Onur
2007-05-22 16:21:04 +00:00
parent bb1fe5fbfc
commit 57e181e78c
+3 -3
View File
@@ -44,11 +44,11 @@ class Digraph(object):
def edges(self): def edges(self):
"return a list of edge descriptors" "return a list of edge descriptors"
list = [] l = []
for u in self.__v: for u in self.__v:
for v in self.__adj[u]: for v in self.__adj[u]:
list.append( (u,v) ) l.append( (u,v) )
return list return l
def from_list(self, el): def from_list(self, el):
"convert a list of edges (u,v) to graph" "convert a list of edges (u,v) to graph"