Ooooo mighty graph algorithm class, pleeeaase let me fix

a tiny bug that has no comparision to the greaaatness of 
thyself.
I humbly bow on thy greatness, aaaaalll mighty one and 
the only one.
This commit is contained in:
Faik Uygur
2006-11-13 14:33:42 +00:00
parent 78ffa14d2e
commit 29e6df278b
+1 -1
View File
@@ -46,7 +46,7 @@ class Digraph(object):
"return a list of edge descriptors" "return a list of edge descriptors"
list = [] list = []
for u in self.__v: for u in self.__v:
for v in self.__u: for v in self.__adj[u]:
list.append( (u,v) ) list.append( (u,v) )
return list return list