[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):
"return a list of edge descriptors"
list = []
l = []
for u in self.__v:
for v in self.__adj[u]:
list.append( (u,v) )
return list
l.append( (u,v) )
return l
def from_list(self, el):
"convert a list of edges (u,v) to graph"