Skip to content

Commit

Permalink
add vertex method
Browse files Browse the repository at this point in the history
  • Loading branch information
txiong000 committed Feb 4, 2019
1 parent 5ef2474 commit 99b8b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/graph/backup/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def __init__(self):
self.vertices = {

}
def add_vertex(self):

def add_vertex(self, vertex):
self.vertices[vertex] = set()
pass
def add_edge(self):
pass
Expand Down

0 comments on commit 99b8b9a

Please sign in to comment.