/usr/lib/pardus/pisi/graph.py:47: (list) shadows builtin
This commit is contained in:
+3
-3
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user