Skip to content

Commit 674119b

Browse files
committed
Three Hundred - Thirty Commit: Implement vertex_count() function
1 parent d97e849 commit 674119b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Section_12(Graphs)/(1)_graph.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,7 @@ def remove_edge(self, u, v):
5858
self._adjacent_matrix[u][v] = 0
5959

6060
def exist_edge(self, u, v):
61-
return self._adjacent_matrix[u][v] != 0
61+
return self._adjacent_matrix[u][v] != 0
62+
63+
def vertex_count(self):
64+
return self._vertices

0 commit comments

Comments
 (0)