[merge] cleanup from -catbox branch
This commit is contained in:
+3
-3
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user