Returns True if the graph contains the vertex, False otherwise.
(self, vertex: T)
| 157 | self.adj_list[destination_vertex].remove(source_vertex) |
| 158 | |
| 159 | def contains_vertex(self, vertex: T) -> bool: |
| 160 | """ |
| 161 | Returns True if the graph contains the vertex, False otherwise. |
| 162 | """ |
| 163 | return vertex in self.adj_list |
| 164 | |
| 165 | def contains_edge(self, source_vertex: T, destination_vertex: T) -> bool: |
| 166 | """ |
no outgoing calls