* relax add_vertex a bit

This commit is contained in:
Eray Özkural
2005-07-18 00:47:00 +00:00
parent adb2974c26
commit 7b4d59527c
+1 -1
View File
@@ -9,7 +9,7 @@ class digraph(object):
#self.__edata = {}
def add_vertex(u, data = None):
assert not u in self.__v
#assert not u in self.__v
self.__v.add(u)
if data!=None:
self.__vdata[u] = data