/usr/lib/pardus/pisi/graph.py:47: (list) shadows builtin

This commit is contained in:
S.Çağlar Onur
2007-05-13 23:47:29 +00:00
parent 0d8e523a73
commit 70c07c1ce2
+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"