This commit is contained in:
Beyza Ermiş
2008-06-20 13:21:24 +00:00
parent fcd4e0c8ec
commit 2cefcf5576
-5
View File
@@ -50,11 +50,6 @@ class Digraph(object):
l.append( (u,v) )
return l
def from_list(self, el):
"convert a list of edges (u,v) to graph"
for (u,v) in el:
self.add_edge(u,v)
def add_vertex(self, u, data = None):
"add vertex u, optionally with data"
assert not u in self.__v