Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 674119b

Browse files
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

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /